diff options
author | TinWoodman92 <chrhodgden@gmail.com> | 2023-06-25 16:51:03 -0500 |
---|---|---|
committer | TinWoodman92 <chrhodgden@gmail.com> | 2023-06-25 16:51:03 -0500 |
commit | f17fc401c4e5a462d18209822b3c9e253ec7ec11 (patch) | |
tree | d4d6c96448aec00537afa56eee7f3d739d2fb34f | |
parent | 7bdb2353587111754ce351c595412b7f248aee2b (diff) |
added import boolean test
-rw-r--r-- | test_import_variable.py | 6 | ||||
-rw-r--r-- | test_import_variable.r | 4 |
2 files changed, 9 insertions, 1 deletions
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 |