15 lines
359 B
Dart
15 lines
359 B
Dart
|
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);
|
||
|
});
|
||
|
|
||
|
}
|