Sonifier Tests

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Tests completed in 224 milliseconds.
14 assertions of 14 passed, 0 failed.

  1. Test the interleave transform (0, 2, 2)Rerun1 ms
    1. Two differing-length arrays are interleaved as expected (shorter as first argument)
    2. Two differing-length arrays are interleaved as expected (longer as first argument)
  2. Test the multiplication transform (0, 3, 3)Rerun1 ms
    1. Object containing mix of number and non-number values is multiplied as expected
    2. Number value is multiplied as expected
    3. A string value is simply left alone
  3. Test the truth value transform (0, 1, 1)Rerun0 ms
    1. Array is transformed as expected in response to true/false testing of each item, and the supplied response values for true/false
  4. Test the sonification data conversion (0, 1, 1)Rerun119 ms
    1. Dataset is converted into the expected sonification data
  5. Test the sonification data conversion with zoom (0, 1, 1)Rerun44 ms
    1. Dataset is converted into the expected sonification with 2x zoom
  6. Test the sonification play behaviour (0, 6, 6)Rerun43 ms
    1. sonificationQueue has expected number of items in it
    2. sonificationQueue item at position 0 matches parallel sonifiedData item
    3. sonificationQueue item at position 1 matches parallel sonifiedData item
    4. isPlaying boolean was true after play was started
    5. currentlyPlayingData is not null
    6. Synth was created