tests/testthat/test-anaglyph.R

test_that("anaglyph ineqmat works", {
  expect_equal(make_anaglyph_ineqmat(1), integer(0))
  expect_snapshot(make_anaglyph_ineqmat(2))
  expect_snapshot(make_anaglyph_ineqmat(4))
})

test_that("anazero_fingerprint works", {
  expect_equal(anazero_fingerprint(c(0, 4, 7, 0, 2, 7)),
               c(0, 1, 2))
  expect_equal(anazero_fingerprint(c(0, 6, 11, 0, 5, 7), edo=19),
               c(0, 0, 1))
})

Try the musicMCT package in your browser

Any scripts or data that you put into this service are public.

musicMCT documentation built on June 21, 2026, 9:06 a.m.