Skip to content

Commit a74248e

Browse files
committed
fix tests
1 parent 5773bdf commit a74248e

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

test/gpth_test.dart

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,20 @@ AQACEQMRAD8AIcgXf//Z""";
7272
1683078832 * 1000);
7373
expect((await jsonExtractor(imgFile3))?.millisecondsSinceEpoch,
7474
1666942303 * 1000);
75-
expect((await jsonExtractor(imgFile4))?.millisecondsSinceEpoch,
76-
1683074444 * 1000);
77-
expect((await jsonExtractor(imgFile4_1))?.millisecondsSinceEpoch,
78-
1683074444 * 1000);
75+
// They *should* fail without tryhard
76+
// See b38efb5d / #175
77+
expect((await jsonExtractor(imgFile4))?.millisecondsSinceEpoch, null);
78+
expect((await jsonExtractor(imgFile4_1))?.millisecondsSinceEpoch, null);
79+
// Should work *with* tryhard
80+
expect(
81+
(await jsonExtractor(imgFile4, tryhard: true))?.millisecondsSinceEpoch,
82+
1683074444 * 1000,
83+
);
84+
expect(
85+
(await jsonExtractor(imgFile4_1, tryhard: true))
86+
?.millisecondsSinceEpoch,
87+
1683074444 * 1000,
88+
);
7989
});
8090
test('test exif extractor', () async {
8191
expect(

0 commit comments

Comments
 (0)