flutter_circular_chart/test/flutter_circular_chart_test.dart

14 lines
388 B
Dart
Raw Normal View History

2017-11-02 23:48:58 +00:00
import 'package:test/test.dart';
import 'package:flutter_circular_chart/flutter_circular_chart.dart';
void main() {
test('adds one to input values', () {
final calculator = new Calculator();
expect(calculator.addOne(2), 3);
expect(calculator.addOne(-7), -6);
expect(calculator.addOne(0), 1);
expect(() => calculator.addOne(null), throwsNoSuchMethodError);
});
}