Skip to content

Commit 0464ed7

Browse files
authored
tests: make assert_with_array_ref_test.v work on s390x too (#24246)
1 parent ca317e2 commit 0464ed7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎vlib/v/tests/assign/assert_with_array_ref_test.v‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ fn test_main() {
66

77
asu8 = &[myu16]! // look this
88

9-
assert unsafe { asu8.vbytes(int(size_of_u16)) } == [u8(50), 0]
9+
$if little_endian {
10+
assert unsafe { asu8.vbytes(int(size_of_u16)) } == [u8(50), 0]
11+
} $else {
12+
assert unsafe { asu8.vbytes(int(size_of_u16)) } == [u8(0), 50]
13+
}
1014
}

0 commit comments

Comments
 (0)