From 10da9b4ad2106bf248b2916868a7ea4a46e1b4d0 Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Thu, 21 Nov 2024 15:14:27 -0600 Subject: [PATCH] Remove color format tests; I don't believe it is used non-interactively --- tests/testthat/test-et.R | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/tests/testthat/test-et.R b/tests/testthat/test-et.R index 6c4501935..b323e591a 100644 --- a/tests/testthat/test-et.R +++ b/tests/testthat/test-et.R @@ -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),