mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
js: add initial support for runes (#12077)
This commit is contained in:
parent
115493781b
commit
b2945e916f
10 changed files with 88 additions and 25 deletions
|
@ -652,12 +652,13 @@ fn test_rune_keys() {
|
|||
println(m)
|
||||
assert '$m' == '{`!`: 2, `%`: 3, `@`: 7}'
|
||||
|
||||
/*
|
||||
mut a := []rune{}
|
||||
for k, v in m {
|
||||
a << k
|
||||
a << rune(v) + `0`
|
||||
}
|
||||
assert a == [`!`, `2`, `%`, `3`, `@`, `7`]
|
||||
assert a == [`!`, `2`, `%`, `3`, `@`, `7`]*/
|
||||
}
|
||||
|
||||
fn test_eq() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue