cpd_2022_energy/test/result_model_test.dart

15 lines
359 B
Dart
Raw Normal View History

2022-11-08 20:37:41 +01:00
import 'package:flutter_test/flutter_test.dart';
import 'package:cpd_2022_energy/result_model.dart';
void main() {
test('Joule value should be calculated', () {
final result = ResultModel();
result.changeJoule(10000, 1, 10, 1, 1);
expect(result.getJoule, 1377000);
expect(result.getWater, 4.11);
expect(result.getIron, 4.05);
});
}