aboutsummaryrefslogtreecommitdiff
path: root/tests.snug
diff options
context:
space:
mode:
authorCamil Staps2023-06-18 21:33:53 +0200
committerCamil Staps2023-06-18 21:33:53 +0200
commite06fcb91abf5ec8403ccf03ba09a6e5ec7d11b8b (patch)
tree3361d05765f10c8601f5f9137631f251b2563188 /tests.snug
parentRemove outdated makefile (diff)
Add automated tests
Diffstat (limited to 'tests.snug')
-rw-r--r--tests.snug8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests.snug b/tests.snug
new file mode 100644
index 0000000..8873481
--- /dev/null
+++ b/tests.snug
@@ -0,0 +1,8 @@
+(test "printing integers" : Int : 37 "37")
+(test "printing integers" : Int : -37 "-37")
+(test "printing characters" : Char : 'a' "'a'")
+
+(data Tuple (a b) (
+ (Tuple a b)))
+
+(test "printing tuples" : Tuple Int Int : (Tuple 1 2) "(1,2)")