emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/emms 29260a991a 11/42: Replace emms-info-native test fi


From: ELPA Syncer
Subject: [elpa] externals/emms 29260a991a 11/42: Replace emms-info-native test files
Date: Wed, 1 Nov 2023 15:57:59 -0400 (EDT)

branch: externals/emms
commit 29260a991a9ed3d8e3133159cfcf51ab869053f2
Author: Petteri Hintsanen <petterih@iki.fi>
Commit: Petteri Hintsanen <petterih@iki.fi>

    Replace emms-info-native test files
    
    Remove Mutagen test files since they cannot be redistributed with EMMS
    due to copyright requirements.  Use synthetic test files instead.
---
 test/emms-info-native-tests.el              | 104 ++++++++--------------------
 test/resources/52-overwritten-metadata.flac | Bin 512 -> 0 bytes
 test/resources/flac_application.flac        | Bin 13000 -> 0 bytes
 test/resources/id3v22-test.mp3              | Bin 5120 -> 0 bytes
 test/resources/multipage-setup.ogg          | Bin 76983 -> 0 bytes
 test/resources/silence-44-s.flac            | Bin 50904 -> 0 bytes
 test/resources/silence-44-s.mp3             | Bin 16384 -> 0 bytes
 test/resources/sine.flac                    | Bin 0 -> 29811 bytes
 test/resources/sine.mp3                     | Bin 0 -> 5799 bytes
 test/resources/sine.ogg                     | Bin 0 -> 5746 bytes
 test/resources/sine.opus                    | Bin 0 -> 8081 bytes
 test/resources/variable-block.flac          | Bin 10240 -> 0 bytes
 test/resources/vbri.mp3                     | Bin 8192 -> 0 bytes
 13 files changed, 28 insertions(+), 76 deletions(-)

diff --git a/test/emms-info-native-tests.el b/test/emms-info-native-tests.el
index 3da5785042..85f796ec23 100644
--- a/test/emms-info-native-tests.el
+++ b/test/emms-info-native-tests.el
@@ -34,84 +34,36 @@
 
 (ert-deftest emms-info-native-test-mp3 ()
   (should (equal (emms-info-native--decode-info-fields
-                  (ert-resource-file "id3v22-test.mp3"))
-                 '(("year" . "2004")
-                   ("tracknumber" . "3/11")
-                   ("album" . "Hymns for the Exiled")
-                   ("artist" . "Anais Mitchell")
-                   ("title" . "cosmic american")
-                   ("playing-time" . 0))))
-  
-  (should (equal (emms-info-native--decode-info-fields
-                  (ert-resource-file "silence-44-s.mp3"))
-                 '(("tracknumber" . "02/10")
-                   ("title" . "Silence")
-                   ("artist" . "jzig")
-                   ("artist" . "piman")
-                   ("album" . "Quod Libet Test Data")
-                   ("genre" . "Silence")
-                   ("year" . "2004")
-                   ("playing-time" . 4))))
+                  (ert-resource-file "sine.mp3"))
+                 '(("artist" . "EMMS project")
+                   ("date" . "2023-09-02")
+                   ("album" . "Test Data")
+                   ("title" . "440 Hz sine wave")
+                   ("playing-time" . 5)))))
 
+(ert-deftest emms-info-native-test-ogg ()
   (should (equal (emms-info-native--decode-info-fields
-                  (ert-resource-file "vbri.mp3"))
-                 '(("title" . "I Can Walk On Water I Can Fly")
-                   ("artist" . "Basshunter")
-                   ("album" . "I Can Walk On Water I Can Fly")
-                   ("year" . "2007")
-                   ("genre" . "Dance")
-                   ("composer")
-                   ("tracknumber" . "01")
-                   ("playing-time" . 222)))))
+                  (ert-resource-file "sine.ogg"))
+                 '(("artist" . "EMMS project")
+                   ("date" . "2023-09-02")
+                   ("album" . "Test Data")
+                   ("title" . "440 Hz sine wave")
+                   ("playing-time" . 5)))))
 
-(ert-deftest emms-info-native-test-ogg ()
+(ert-deftest emms-info-native-test-flac ()
   (should (equal (emms-info-native--decode-info-fields
-                  (ert-resource-file "multipage-setup.ogg"))
-                 '(("artist" . "UVERworld")
-                   ("genre" . "JRock")
-                   ("title" . "Burst")
-                   ("album" . "Timeless")
-                   ("tracknumber" . "7")
-                   ("date" . "2006")
-                   ("playing-time" . 4)))))
+                  (ert-resource-file "sine.flac"))
+                 '(("artist" . "EMMS project")
+                   ("date" . "2023-09-02")
+                   ("album" . "Test Data")
+                   ("title" . "440 Hz sine wave")
+                   ("playing-time" . 5)))))
 
-  (ert-deftest emms-info-native-test-flac ()
-    (should (equal (emms-info-native--decode-info-fields
-                    (ert-resource-file "52-overwritten-metadata.flac"))
-                   '(("tracknumber" . "01")
-                     ("date" . "1990")
-                     ("genre" . "Klezmer")
-                     ("album" . "The Magic of the Klezmer")
-                     ("artist" . "Giora Feidman")
-                     ("title" . "Songs of Rejoicing")
-                     ("playing-time" . 236))))
-    (should (equal (emms-info-native--decode-info-fields
-                    (ert-resource-file "flac_application.flac"))
-                   '(("artistsort" . "Belle and Sebastian")
-                     ("artist" . "Belle and Sebastian")
-                     ("title" . "I Want the World to Stop")
-                     ("album" . "Belle and Sebastian Write About Love")
-                     ("tracknumber" . "4/11")
-                     ("date" . "2010-10-11")
-                     ("playing-time" . 273))))
-    (should (equal (emms-info-native--decode-info-fields
-                    (ert-resource-file "silence-44-s.flac"))
-                   '(("title" . "Silence")
-                     ("date" . "2004")
-                     ("tracknumber" . "02/10")
-                     ("genre" . "Silence")
-                     ("artist" . "jzig")
-                     ("artist" . "piman")
-                     ("album" . "Quod Libet Test Data")
-                     ("playing-time" . 3))))
-    (should (equal (emms-info-native--decode-info-fields
-                    (ert-resource-file "variable-block.flac"))
-                   '(("tracknumber" . "01")
-                     ("title" . "DIVE FOR YOU")
-                     ("genre" . "Anime Soundtrack")
-                     ("discnumber" . "1")
-                     ("date" . "2004")
-                     ("composer" . "Boom Boom Satellites (Lyrics)")
-                     ("artist" . "Boom Boom Satellites")
-                     ("album" . "Appleseed Original Soundtrack")
-                     ("playing-time" . 261)))))
+(ert-deftest emms-info-native-test-opus ()
+  (should (equal (emms-info-native--decode-info-fields
+                  (ert-resource-file "sine.opus"))
+                 '(("artist" . "EMMS project")
+                   ("date" . "2023-09-02")
+                   ("album" . "Test Data")
+                   ("title" . "440 Hz sine wave")
+                   ("playing-time" . 5)))))
diff --git a/test/resources/52-overwritten-metadata.flac 
b/test/resources/52-overwritten-metadata.flac
deleted file mode 100644
index 7f5dea001c..0000000000
Binary files a/test/resources/52-overwritten-metadata.flac and /dev/null differ
diff --git a/test/resources/flac_application.flac 
b/test/resources/flac_application.flac
deleted file mode 100644
index 026ac5d10e..0000000000
Binary files a/test/resources/flac_application.flac and /dev/null differ
diff --git a/test/resources/id3v22-test.mp3 b/test/resources/id3v22-test.mp3
deleted file mode 100644
index f481968023..0000000000
Binary files a/test/resources/id3v22-test.mp3 and /dev/null differ
diff --git a/test/resources/multipage-setup.ogg 
b/test/resources/multipage-setup.ogg
deleted file mode 100644
index 7ab9791e20..0000000000
Binary files a/test/resources/multipage-setup.ogg and /dev/null differ
diff --git a/test/resources/silence-44-s.flac b/test/resources/silence-44-s.flac
deleted file mode 100644
index 24e15deb8c..0000000000
Binary files a/test/resources/silence-44-s.flac and /dev/null differ
diff --git a/test/resources/silence-44-s.mp3 b/test/resources/silence-44-s.mp3
deleted file mode 100644
index 8472632917..0000000000
Binary files a/test/resources/silence-44-s.mp3 and /dev/null differ
diff --git a/test/resources/sine.flac b/test/resources/sine.flac
new file mode 100644
index 0000000000..ef462db546
Binary files /dev/null and b/test/resources/sine.flac differ
diff --git a/test/resources/sine.mp3 b/test/resources/sine.mp3
new file mode 100644
index 0000000000..f865854e93
Binary files /dev/null and b/test/resources/sine.mp3 differ
diff --git a/test/resources/sine.ogg b/test/resources/sine.ogg
new file mode 100644
index 0000000000..2cc884fd6a
Binary files /dev/null and b/test/resources/sine.ogg differ
diff --git a/test/resources/sine.opus b/test/resources/sine.opus
new file mode 100644
index 0000000000..238e904375
Binary files /dev/null and b/test/resources/sine.opus differ
diff --git a/test/resources/variable-block.flac 
b/test/resources/variable-block.flac
deleted file mode 100644
index b23c9fd0e4..0000000000
Binary files a/test/resources/variable-block.flac and /dev/null differ
diff --git a/test/resources/vbri.mp3 b/test/resources/vbri.mp3
deleted file mode 100644
index ea14d61e90..0000000000
Binary files a/test/resources/vbri.mp3 and /dev/null differ



reply via email to

[Prev in Thread] Current Thread [Next in Thread]