tests/testthat/test-jdx.R

test_that("comments are stripped", {
    expect_equal(
        strip_comments(c(
            "##TITLE=Hello $$ world",
            "$$ Hello world",
            "12343 $$ hello world"
        )),
        c("##TITLE=Hello ", "", "12343 ")
    )
})

test_that("comments are stripped", {
    expect_equal(
        strip_comments(c(
            "##TITLE=Hello $$ world",
            "$$ Hello world",
            "12343 $$ hello world"
        )),
        c("##TITLE=Hello ", "", "12343 ")
    )
})
sipss/AlpsNMR documentation built on Aug. 13, 2024, 5:11 p.m.