mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
added evFromImage
test
This commit is contained in:
parent
d09542cede
commit
cb6880da49
1 changed files with 14 additions and 0 deletions
14
test/utils/ev_from_bytes_test.dart
Normal file
14
test/utils/ev_from_bytes_test.dart
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
import 'package:lightmeter/utils/ev_from_bytes.dart';
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
test(
|
||||||
|
'evFromImage',
|
||||||
|
() {
|
||||||
|
final bytes = File('assets/camera_stub_image.jpg').readAsBytesSync();
|
||||||
|
expectLater(evFromImage(bytes), completion(8.25230310752341));
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in a new issue