mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
test: add hashmap tests
Hashmaps are still very primitive. These tests check that there are at least no regressions in hashmap support.
This commit is contained in:
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
map length: 2
|
||||
map read: answer = 42
|
||||
answer = 42
|
||||
foo = 3
|
||||
map length: 1
|
||||
map read: data = 3
|
||||
data = 3
|
||||
map length: 12
|
||||
map read: three = 3
|
||||
one = 1
|
||||
two = 2
|
||||
three = 3
|
||||
four = 4
|
||||
five = 5
|
||||
six = 6
|
||||
seven = 7
|
||||
eight = 8
|
||||
nine = 9
|
||||
ten = 10
|
||||
eleven = 11
|
||||
twelve = 12
|
||||
map length: 12
|
||||
map read: ten = 10
|
||||
one = 1
|
||||
two = 2
|
||||
three = 3
|
||||
four = 4
|
||||
five = 5
|
||||
six = 6
|
||||
seven = 7
|
||||
eight = 8
|
||||
nine = 9
|
||||
ten = 10
|
||||
eleven = 11
|
||||
twelve = 12
|
||||
Reference in New Issue
Block a user