added evFromImage test

This commit is contained in:
Vadim 2024-01-13 17:55:02 +01:00
parent d09542cede
commit cb6880da49

View 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));
},
);
}