Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwursteisen committed Feb 28, 2024
1 parent e332066 commit 1a0b1f9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,19 @@ class SfxLibTest {
fun toTable() {
val lib = SfxLib(mockResources, false)
val table = lib.toTable().call(lib.emptyScore().call())
val r = table["patterns"][1].checktable()!!.keys()
val r = table["tracks"][1]["patterns"][1].checktable()!!.keys()
assertTrue(r.isEmpty())
}

@Test
fun createEmptyScore() {
val expectedScore = """tiny-sfx 1 120 127
val expectedScore = """tiny-sfx 120 127
|1 01 19 00 FF 19 00 00 00 00 00
|
|1
|0 01 19 00 FF 19 00 00 00 00 00
|0 01 19 00 FF 19 00 00 00 00 00
|0 01 19 00 FF 19 00 00 00 00 00
""".trimMargin()

val score = SfxLib(mockResources, false).emptyScore().call()
Expand Down

0 comments on commit 1a0b1f9

Please sign in to comment.