tests/testthat/test-1-duration-to-string.R

test_that("convert complex tuplets to string", {
  duration <- to_Duration("h / 4 *(8./q) / 5")

  out <- to_string(duration)
  expected <- "half/4*(eighth./quarter)/5"
  expect_equal(out, expected)

  out <- to_string(duration, TRUE)
  expected <- "h/4*(8./q)/5"
  expect_equal(out, expected)
})
flujoo/gm documentation built on July 12, 2024, 4:56 p.m.