// See https://pub.dartlang.org/packages/test import "package:test/test.dart"; import "package:solution/solution.dart"; void main() { group("Tests", () { test('1+1=', ()=> expect(addition(1, 1), equals(2))); test('2+0=', ()=> expect(addition(2, 0), equals(2))); test('123+321=', ()=> expect(addition(123, 321), equals(444))); test('11+11=', ()=> expect(addition(11, 11), equals(22))); }); }
- // See https://pub.dartlang.org/packages/test
- import "package:test/test.dart";
- import "package:solution/solution.dart";
- void main() {
- group("Tests", () {
- test('1+1=', ()=> expect(addition(1, 1), equals(2)));
- test('2+0=', ()=> expect(addition(2, 0), equals(2)));
- test('123+321=', ()=> expect(addition(123, 321), equals(444)));
- test('11+11=', ()=> expect(addition(11, 11), equals(22)));
- });
- }