summaryrefslogtreecommitdiff
path: root/test/ref
diff options
context:
space:
mode:
authormirror <mirror@localhost>2026-11-22 08:41:00 +0900
committermirror <mirror@localhost>2026-11-22 08:41:00 +0900
commit449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch)
treec131c3528c4d517f56e19b854a7453fedb097d40 /test/ref
downloadaves-src-master.tar.gz
aves-src-master.zip
snapshot of aves v1.13.12 (secrets removed: android/app/google-services.json)HEADv1.13.12master
Diffstat (limited to 'test/ref')
-rw-r--r--test/ref/bursts_test.dart19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/ref/bursts_test.dart b/test/ref/bursts_test.dart
new file mode 100644
index 0000000..6efc1df
--- /dev/null
+++ b/test/ref/bursts_test.dart
@@ -0,0 +1,19 @@
+import 'package:aves/ref/bursts.dart';
+import 'package:test/test.dart';
+
+void main() {
+ test('Samsung burst', () {
+ expect(BurstPatterns.getKeyForName('20151021_072800_006', [BurstPatterns.samsung]), '20151021_072800');
+ expect(BurstPatterns.getKeyForName('20151021_072800_007', [BurstPatterns.samsung]), '20151021_072800');
+ });
+
+ test('Sony burst', () {
+ expect(BurstPatterns.getKeyForName('DSC_0006_BURST20151021072800123', [BurstPatterns.sony]), '20151021072800123');
+ expect(BurstPatterns.getKeyForName('DSC_0007_BURST20151021072800123', [BurstPatterns.sony]), '20151021072800123');
+ });
+
+ test('Sony predictive capture', () {
+ expect(BurstPatterns.getKeyForName('DSCPDC_0002_BURST20180619163426901', [BurstPatterns.sony]), '20180619163426901');
+ expect(BurstPatterns.getKeyForName('DSCPDC_0003_BURST20180619163426901_COVER', [BurstPatterns.sony]), '20180619163426901');
+ });
+}