From 1e3df4f9aac2f95b1476a7507f33a3d9f0e036c5 Mon Sep 17 00:00:00 2001 From: mryouse Date: Wed, 20 Jul 2022 21:07:52 +0000 Subject: s/:list/:[:any]/ and make leading dot illegal --- tests/math/addition/bad_type_list.neb | 2 +- tests/math/addition/bad_type_type.neb | 2 +- tests/math/addition/happy.neb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/math/addition') diff --git a/tests/math/addition/bad_type_list.neb b/tests/math/addition/bad_type_list.neb index cb8a999..f0a70f0 100644 --- a/tests/math/addition/bad_type_list.neb +++ b/tests/math/addition/bad_type_list.neb @@ -1,2 +1,2 @@ (+ 4 (list "hello")) -; panic! [1] '+': received :list, expected :number (got ("hello")) +; panic! [1] '+': received :[:any], expected :number (got ("hello")) diff --git a/tests/math/addition/bad_type_type.neb b/tests/math/addition/bad_type_type.neb index 088fefb..9e1b254 100644 --- a/tests/math/addition/bad_type_type.neb +++ b/tests/math/addition/bad_type_type.neb @@ -1,2 +1,2 @@ -(+ .4 :string) +(+ 0.4 :string) ; panic! [1] '+': received :type, expected :number (got :string) diff --git a/tests/math/addition/happy.neb b/tests/math/addition/happy.neb index 4c037b2..231e01c 100644 --- a/tests/math/addition/happy.neb +++ b/tests/math/addition/happy.neb @@ -2,7 +2,7 @@ (concat (->string (+ 2)) " " (->string (+ 4 5)) " " - (->string (+ .9)) " " + (->string (+ 0.9)) " " (->string (+ 2.9 4)) " " (->string (+ 2 4.5)) " " (->string (+ 6 7 8 15)))) -- cgit v1.2.3