]> gitweb.factorcode.org Git - factor.git/blob - extra/id3/id3-tests.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / id3 / id3-tests.factor
1 ! Copyright (C) 2009 Tim Wawrzynczak
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test id3 id3.private ;
4 IN: id3.tests
5
6 [
7     T{ id3-info
8        { title "BLAH" }
9        { artist "ARTIST" }
10        { album "ALBUM" }
11        { year "2009" }
12        { comment "COMMENT" }
13        { genre "Bluegrass" }
14     }
15 ] [ "resource:extra/id3/tests/blah.mp3" file-id3-tags ] unit-test
16
17 [
18     T{ id3-info
19        { title "Anthem of the Trinity" }
20        { artist "Terry Riley" }
21        { album "Shri Camel" }
22        { genre "Classical" }
23     }
24 ] [ "resource:extra/id3/tests/blah2.mp3" file-id3-tags ] unit-test
25
26 [    
27     T{ id3-info
28        { title "Stormy Weather" }
29        { artist "Frank Sinatra" }
30        { album "Night and Day Frank Sinatra" }
31        { comment "eng, AG# 08E1C12E" }
32        { genre "Big Band" }
33     }
34 ] [ "resource:extra/id3/tests/blah3.mp3" file-id3-tags ] unit-test
35