diff options
author | Ayke van Laethem <[email protected]> | 2018-10-10 14:11:15 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-10-10 14:11:15 +0200 |
commit | 0ed00bf6c67238a5003a9adf9afb05eabbd06de7 (patch) | |
tree | 91d3adb13ca3e241492b9c3e92e4007945866cea /testdata/map.txt | |
parent | 0ce5347409b0400ce83e4122075d1559188fc51a (diff) | |
download | tinygo-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.txt | 35 |
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 |