aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/map.txt
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-10-10 14:11:15 +0200
committerAyke van Laethem <[email protected]>2018-10-10 14:11:15 +0200
commit0ed00bf6c67238a5003a9adf9afb05eabbd06de7 (patch)
tree91d3adb13ca3e241492b9c3e92e4007945866cea /testdata/map.txt
parent0ce5347409b0400ce83e4122075d1559188fc51a (diff)
downloadtinygo-0ed00bf6c67238a5003a9adf9afb05eabbd06de7.tar.gz
tinygo-0ed00bf6c67238a5003a9adf9afb05eabbd06de7.zip
test: add hashmap tests
Hashmaps are still very primitive. These tests check that there are at least no regressions in hashmap support.
Diffstat (limited to 'testdata/map.txt')
-rw-r--r--testdata/map.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/testdata/map.txt b/testdata/map.txt
new file mode 100644
index 000000000..ccb70dfc3
--- /dev/null
+++ b/testdata/map.txt
@@ -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