1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-17 08:47:39 +00:00

Add bytecode verification

This commit is contained in:
bakpakin
2018-01-20 17:19:47 -05:00
parent 065c4cfac1
commit d68eae9592
9 changed files with 312 additions and 48 deletions

View File

@@ -193,6 +193,15 @@
(assert (= (string "🐼" 🦊 🐮) "🐼foxcow") "emojis 🙉 :)")
(assert (not= 🦊 :🦊) "utf8 strings are not symbols and vice versa")
# Symbols with @ symbol
(def @ 1)
(assert (= @ 1) "@ symbol")
(def @@ 2)
(assert (= @@ 2) "@@ symbol")
(def @hey 3)
(assert (= @hey 3) "@hey symbol")
# Merge sort
# Imperative merge sort merge