diff --git a/testing/data/mikdp.tja b/testing/data/mikdp.tja new file mode 100644 index 0000000..8b18772 --- /dev/null +++ b/testing/data/mikdp.tja @@ -0,0 +1,580 @@ +BPM:181 +OFFSET:-1.99 + + + +COURSE:Oni +LEVEL:10 +BALLOON: +SCOREINIT:380 +SCOREDIFF:92 + +#START +1111111111112000, + +#GOGOSTART +1020112010212012, +1020112012212011, +1111201122101222, +100000200000100200200100100000202020100000200000, + +#GOGOEND +1111, +1000100010001011, +1110201110201110, +2011102011111111, +1001201011102012, +1011201002 +102010, +1001201011102012, +1011201002 +112022, +10012010111020 +12, +1011201122112211, + +#GOGOSTART +1020112010212012, +10201120 +12212011, + +#GOGOEND +1011201011102012, +101120100 +2102010, +1011221122102012, +101120100 +2112022, +100120101110 +2012, +1011201122112222, + +#GOGOSTART +1020112010212012, +1020112012212010, + +#GOGOEND +1110101111101011, +11101011111010 +11, +11101011 +11101011, +1110 +10111110 +2011, +10211021 +10211021, +1021102110112011, +1202222210222222, +100000000300000000300000600000000000008000000000, +300300 +3030000000, + +#GOGOSTART +10221020 +11201022, +102011201022 +1020, +10212012102010 +22, +112010221020 +1120, +12121021212010 +22, +1020112010221020, +1122105000000000, +000000000008000000000000 +200200200200100100100100, +20112010 +22102011, +201022102011 +2010, +20121021201020 +11, +2210201120102210, +212120 +12121020 +11, +20112211221112 +10, +3004003030040030, + +#GOGOEND +3232 +3020, + +#GOGOSTART +1020112010212012, +1020112012212011, +1111201122101222, +100000200000100200200100100000202020100000200000, +1020112010212012, +1020112012212011, +1111201122101222, +100000200000100200200100 +100000202020100000200000, + +#GOGOEND +3000 +0003, +000022111030 +0300, +3000000 +4, +000012221222 +1222, +11111111111111 +11, +1111111111111111, +0000000000300300, +30221222 +11112222, + +#GOGOSTART +10221020 +11201022, +102011201022 +1020, +10212012102010 +22, +11201022102011 +20, +121210 +21212010 +22, +10221122112212 +11, +1021021010210210, + +#GOGOEND +302030203011 +2210, +40104010 +40221000, + +#GOGOSTART +1020112010212012, +1020112012212011, +1111201122101222, +100000200000100200200100100000202020100000200000, +1020112211212012, +1022112212212011, +1111201122101222, +100100200200100200200100100000202020100000200000, + +#GOGOEND +, + +#MEASURE 2/4 +, + +#BARLINEOFF +#SCROLL 2 +0300, + +#MEASURE 4/4 +, +, + +#END + + + +COURSE:Hard +LEVEL:7 +BALLOON:21,11 +SCOREINIT:500 +SCOREDIFF:130 + +#START +, + +#GOGOSTART +1010200010111000, +1010200010111000, +1010201011101000, +1010200020222020, + +#GOGOEND +1, +, +7, +0008, +10201122, +02010221, +10201122, +02010221, +10222011, +10221120, + +#GOGOSTART +1010200010111000, +1010200010111000, + +#GOGOEND +10201122, +02010221, +10201122, +02010221, +10222011, +10221120, + +#GOGOSTART +1010200010111000, +1010200010111000, + +#GOGOEND +11011101, +11011101, +11011101, +11011020, +12121212, +12121220, +3003003040040040, +300000000300000000300000600000000000008000000000, +3003003030000000, + +#GOGOSTART +1011101010100010, +01122010, +1011101010100020, +02211020, +1010202011100010, +01212121, +2002005000000000, +000000000008000000000000200000000000200000000000, +1011101010100010, +01122010, +1011101010100020, +02211020, +1010202011100010, +21212120, +3003003040040040, + +#GOGOEND +3332, + +#GOGOSTART +1010200010111000, +1010200010111000, +1010201011101000, +1010200020222000, +1010200010111000, +1010200010111000, +1010201011101000, +1010200020222020, + +#GOGOEND +30000003, +0000000000300300, +30000007, +0008, +5, +000000000000000000000000000000000000000000000008, +0000000000300300, +600000000000008000000000200000000000200000000000, + +#GOGOSTART +1011101010100010, +01122010, +1011101010100020, +02211020, +1010202011100010, +21212120, +3003003040040040, + +#GOGOEND +300000000000300000000000600000000008000000000000, +3332, + +#GOGOSTART +1010200010111000, +1010200010111000, +1010201011101000, +1010200020222000, +1010200010111000, +1010200010111000, +1010201011101000, +1010200020222020, + +#GOGOEND +, + +#MEASURE 2/4 +, + +#BARLINEOFF +0300, + +#MEASURE 4/4 +, +, +#END + + + +COURSE:Normal +LEVEL:5 +BALLOON:14,15,7,6 +SCOREINIT:700 +SCOREDIFF:197 + +#START +, + +#GOGOSTART +10101110, +10101110, +2222, +500000000000000000000000000000000000000000000008, + +#GOGOEND +, +, +7, +0008, +10101001, +01010000, +10101001, +01010000, +1120, +1122, + +#GOGOSTART +10101110, +10101110, + +#GOGOEND +10101001, +01010000, +10101001, +01010000, +1120, +1122, + +#GOGOSTART +10101110, +10101110, + +#GOGOEND +1111, +1111, +1111, +1110, +2222, +2222, +9, +09, +8, + +#GOGOSTART +10101001, +01101000, +10101001, +01101000, +10101001, +01101010, +5, +000000000008000000000000000000000000000000000000, +10102001, +01101000, +10102001, +01101000, +10102001, +01101010, +44, + +#GOGOEND +3330, + +#GOGOSTART +10101110, +10101110, +2222, +500000000000000000000000000000000008000000000000, +10101110, +10101110, +2222, +500000000000000000000000000000000008000000000000, + +#GOGOEND +30000003, +, +30000007, +0008, +5, +000000000000000000000000000000000000000000000008, +00000700, +00008000, + +#GOGOSTART +10102001, +01101000, +10102001, +01101000, +10102001, +01101010, +44, + +#GOGOEND +3330, +3330, + +#GOGOSTART +10101110, +10101110, +2222, +500000000000000000000000000000000008000000000000, +10101110, +10101110, +2222, +500000000000000000000000000000000000000000000008, + +#GOGOEND +, + +#MEASURE 2/4 +, + +#BARLINEOFF +0300, + +#MEASURE 4/4 +, +, + +#END + + + +COURSE:Easy +LEVEL:3 +BALLOON:9,12,5 +SCOREINIT:610 +SCOREDIFF:210 + +#START +, + +#GOGOSTART +1110, +1110, +22, +500000000000000000000000000000000000000000000008, + +#GOGOEND +, +, +7, +00000800, +11, +1, +11, +1, +11, +22, + +#GOGOSTART +1110, +1110, + +#GOGOEND +11, +1, +11, +1, +11, +22, + +#GOGOSTART +1110, +1110, + +#GOGOEND +11, +11, +11, +1, +22, +22, +9, +09, +8, + +#GOGOSTART +11, +1110, +11, +1110, +11, +1110, +5, +000000000008000000000000000000000000000000000000, +12, +1110, +12, +1110, +12, +1110, +33, + +#GOGOEND +3330, + +#GOGOSTART +1110, +1110, +22, +500000000000000000000000000008000000000000000000, +1110, +1110, +22, +500000000000000000000000000008000000000000000000, + +#GOGOEND +30000003, +, +30000003, +, +5, +000000000000000000000000000000000000000000000008, +00000700, +00008000, + +#GOGOSTART +12, +1110, +12, +1110, +12, +1110, +33, + +#GOGOEND +3330, +3330, + +#GOGOSTART +1110, +1110, +22, +500000000000000000000000000008000000000000000000, +1110, +1110, +22, +500000000000000000000000000000000000000000000008, + +#GOGOEND +, + +#MEASURE 2/4 +, + +#BARLINEOFF +0300, + +#MEASURE 4/4 +, +, + +#END \ No newline at end of file diff --git a/testing/data/mikdp.zip b/testing/data/mikdp.zip new file mode 100644 index 0000000..6a17c8b Binary files /dev/null and b/testing/data/mikdp.zip differ diff --git a/testing/test_songs.py b/testing/test_songs.py index 702c8ad..1d4f03e 100644 --- a/testing/test_songs.py +++ b/testing/test_songs.py @@ -29,7 +29,7 @@ def assert_song_property(obj1, obj2, prop, measure=None, branch=None, note=None, assert obj1[prop] == obj2[prop], msg_failure -@pytest.mark.parametrize('id_song', ['song1', 'song2']) +@pytest.mark.parametrize('id_song', ['mikdp']) def test_converted_tja_vs_cached_fumen(id_song, tmp_path): # Define the testing directory path_test = os.path.dirname(os.path.realpath(__file__))