parser: []int{cap:cap, len:len} syntax; minor fixes

This commit is contained in:
Alexander Medvednikov 2020-04-14 18:09:59 +02:00
parent 893d14ef8f
commit ec10831318
7 changed files with 79 additions and 26 deletions

View file

@ -691,3 +691,8 @@ fn test_hex(){
st1 := [byte(0x41)].repeat(100)
assert st1.hex() == "41".repeat(100)
}
fn test_array_with_cap() {
a := []int{cap:10, len:1 }
//assert a.len == 1
}