mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
array: eq() for builtins (byte, string, int, i64, f32)
This commit is contained in:
parent
2798e59e7f
commit
d42c53346d
2 changed files with 40 additions and 1 deletions
|
@ -387,4 +387,9 @@ fn test_array_str() {
|
|||
assert true
|
||||
assert numbers.str() == '[1, 2, 3]'
|
||||
assert numbers2.str() == '[[1, 2, 3], [4, 5, 6]]'
|
||||
}
|
||||
}
|
||||
|
||||
fn test_eq() {
|
||||
assert [5,6,7].eq([6,7]) == false
|
||||
assert [`a`,`b`].eq([`a`,`b`]) == true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue