From cd21e7a1cc05ef603130c04724b44a62f888eeb3 Mon Sep 17 00:00:00 2001 From: Nathan Braswell Date: Sun, 3 Jul 2016 23:07:34 -0700 Subject: [PATCH] Add in simple CTCE test --- tests/test_ctce.expected_results | 2 ++ tests/test_ctce.krak | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/test_ctce.expected_results create mode 100644 tests/test_ctce.krak diff --git a/tests/test_ctce.expected_results b/tests/test_ctce.expected_results new file mode 100644 index 0000000..f7cf94f --- /dev/null +++ b/tests/test_ctce.expected_results @@ -0,0 +1,2 @@ +3 +hello, world diff --git a/tests/test_ctce.krak b/tests/test_ctce.krak new file mode 100644 index 0000000..eb415f3 --- /dev/null +++ b/tests/test_ctce.krak @@ -0,0 +1,8 @@ +import io: * + +fun main(): int { + var a = #ctce(1+2) + println(a) + println(#ctce("junkhello, world"+4)) + return 0 +}