From f17fc401c4e5a462d18209822b3c9e253ec7ec11 Mon Sep 17 00:00:00 2001 From: TinWoodman92 Date: Sun, 25 Jun 2023 16:51:03 -0500 Subject: added import boolean test --- test_import_variable.py | 6 ++++++ test_import_variable.r | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test_import_variable.py b/test_import_variable.py index d6fd683..69a3663 100644 --- a/test_import_variable.py +++ b/test_import_variable.py @@ -30,6 +30,12 @@ class TestImportVariable(unittest.TestCase): self.assertEqual(int_1, 3) self.assertEqual(int_2, 155) + def test_import_boolean(self): + chk_1 = self.src_fil_r.import_variable('chk_1') + chk_2 = self.src_fil_r.import_variable('chk_2') + self.assertEqual(chk_1, True) + self.assertEqual(chk_2, False) + if __name__ == '__main__': unittest.main() diff --git a/test_import_variable.r b/test_import_variable.r index 736470c..41bf609 100644 --- a/test_import_variable.r +++ b/test_import_variable.r @@ -1,4 +1,6 @@ msg_1 <- "Initializing Client - R" msg_2 <- "Initialized Client - R" int_1 <- as.integer(3) -int_2 <- as.integer(155) \ No newline at end of file +int_2 <- as.integer(155) +chk_1 <- TRUE +chk_2 <- FALSE -- cgit v1.2.3