Skip to content

Commit

Permalink
add back vlib/v/tests/assert_alias_array_test.v
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Dec 15, 2024
1 parent b2178c4 commit f4bd5ec
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions vlib/v/tests/assert_alias_array_test.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
type Arr = [4]u8
type Arr2 = []u8
type ArrStr = [4]string

fn test_main() {
a := Arr{}
b := Arr{}

assert a == b
assert Arr{} == Arr{}
assert Arr{} == [4]u8{}
assert Arr{} == [u8(0), 0, 0, 0]!

assert Arr2{} == Arr2{}
assert Arr2{} == []u8{}

assert ArrStr{} == ArrStr{}
}

0 comments on commit f4bd5ec

Please sign in to comment.