Skip to content

Commit

Permalink
Remove color format tests; I don't believe it is used non-interactively
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 21, 2024
1 parent beb2a4f commit 10da9b4
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/testthat/test-et.R
Original file line number Diff line number Diff line change
Expand Up @@ -830,32 +830,6 @@ rxTest({
})
})

test_that(".colorFmt.rxEvid", {
expect_equal(
.colorFmt.rxEvid(-1:9),
c("\033[34m\033[31m-1\033[34m\033[39m:\033[31mInvalid\033[39m ",
"\033[34m\033[1m0\033[22m\033[39m:\033[37mObservation\033[39m ",
"\033[34m\033[1m1\033[22m\033[39m:\033[33mDose (Add)\033[39m ",
"\033[34m\033[1m2\033[22m\033[39m:\033[33mOther\033[39m ",
"\033[34m\033[1m3\033[22m\033[39m:\033[31mReset\033[39m ",
"\033[34m\033[1m4\033[22m\033[39m:\033[31mReset\033[39m&\033[33mDose\033[39m",
"\033[34m\033[1m5\033[22m\033[39m:\033[31mReplace\033[39m ",
"\033[34m\033[1m6\033[22m\033[39m:\033[33mMultiply\033[39m ",
"\033[34m\033[1m7\033[22m\033[39m:\033[33mTransit\033[39m ",
"\033[34m\033[31m8\033[34m\033[39m:\033[31mInvalid\033[39m ",
"\033[34m\033[31m9\033[34m\033[39m:\033[31mInvalid\033[39m "
)
)
expect_equal(
.colorFmt.rxEvid("A"),
"\033[34m\033[31mA\033[34m\033[39m:\033[31mInvalid\033[39m"
)
expect_equal(
.colorFmt.rxEvid(0.5),
"\033[34m\033[31m0.5\033[34m\033[39m:\033[31mInvalid\033[39m"
)
})

test_that("as.character.rxEvid", {
expect_equal(
as.character.rxEvid(-1:9),
Expand Down

0 comments on commit 10da9b4

Please sign in to comment.