From 1a22482c09ed9029a8f0bf42ec96a414d6a2c2ca Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Mon, 29 Jul 2019 01:20:24 +1000 Subject: [PATCH] move module tests --- compiler/tests/module_test.v | 18 ++++++++++++++++++ compiler/tests/submodule_test.v | 5 ----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 compiler/tests/module_test.v delete mode 100644 compiler/tests/submodule_test.v diff --git a/compiler/tests/module_test.v b/compiler/tests/module_test.v new file mode 100644 index 0000000000..be3fcf201b --- /dev/null +++ b/compiler/tests/module_test.v @@ -0,0 +1,18 @@ +import os +import time as t +import crypto.sha256 as s2 + +import ( + math + log as l + crypto.sha512 as s5 +) + +pub fn main() { + assert os.SUCCESS == os.SUCCESS && + t.MonthDays[0] == t.MonthDays[0] && + s2.Size == s2.Size && + math.Pi == math.Pi && + l.INFO == l.INFO && + s5.Size == s5.Size +} diff --git a/compiler/tests/submodule_test.v b/compiler/tests/submodule_test.v deleted file mode 100644 index 896e24bfd6..0000000000 --- a/compiler/tests/submodule_test.v +++ /dev/null @@ -1,5 +0,0 @@ -import encoding.base64 - -pub fn test_submodules() { - assert base64.decode('c3VibW9kdWxlcyBhcmUgd29ya2luZyE=') == 'submodules are working!' -}