parent
76df253f1f
commit
11dbdedb4e
3 changed files with 2 additions and 21 deletions
@ -1,7 +1 @@ |
||||
library flutter_quill; |
||||
|
||||
/// A Calculator. |
||||
class Calculator { |
||||
/// Returns [value] plus 1. |
||||
int addOne(int value) => value + 1; |
||||
} |
||||
library flutter_quill; |
@ -1,13 +0,0 @@ |
||||
import 'package:flutter_test/flutter_test.dart'; |
||||
|
||||
import 'package:flutter_quill/flutter_quill.dart'; |
||||
|
||||
void main() { |
||||
test('adds one to input values', () { |
||||
final calculator = Calculator(); |
||||
expect(calculator.addOne(2), 3); |
||||
expect(calculator.addOne(-7), -6); |
||||
expect(calculator.addOne(0), 1); |
||||
expect(() => calculator.addOne(null), throwsNoSuchMethodError); |
||||
}); |
||||
} |
Loading…
Reference in new issue