We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca317e2 commit 0464ed7Copy full SHA for 0464ed7
1 file changed
vlib/v/tests/assign/assert_with_array_ref_test.v
@@ -6,5 +6,9 @@ fn test_main() {
6
7
asu8 = &[myu16]! // look this
8
9
- assert unsafe { asu8.vbytes(int(size_of_u16)) } == [u8(50), 0]
+ $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
+ }
14
}
0 commit comments