1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gen: fix str_gen_test.v (#7826)

This commit is contained in:
yuyi 2021-01-03 22:40:47 +08:00 committed by GitHub
parent f215620d83
commit 60b3658e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,10 +72,10 @@ fn test_map_of_floats() {
assert '$aa' == "{'a': 1.1, 'b': 2.2, 'c': 3.3}" assert '$aa' == "{'a': 1.1, 'b': 2.2, 'c': 3.3}"
} }
fn test_map_of_bytes() { fn test_map_of_runes() {
aa := {'a': `a`, 'b': `b`, 'c': `c`} aa := {'a': `a`, 'b': `b`, 'c': `c`}
assert aa.str() == "{'a': a, 'b': b, 'c': c}" assert aa.str() == "{'a': `a`, 'b': `b`, 'c': `c`}"
assert '$aa' == "{'a': a, 'b': b, 'c': c}" assert '$aa' == "{'a': `a`, 'b': `b`, 'c': `c`}"
} }
fn test_map_of_bools() { fn test_map_of_bools() {