From 0464ed792ec1e30a606f9c3722f5af682b14f273 Mon Sep 17 00:00:00 2001 From: Mike <45243121+tankf33der@users.noreply.github.com> Date: Wed, 16 Apr 2025 12:41:48 +0300 Subject: [PATCH] tests: make assert_with_array_ref_test.v work on s390x too (#24246) --- vlib/v/tests/assign/assert_with_array_ref_test.v | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vlib/v/tests/assign/assert_with_array_ref_test.v b/vlib/v/tests/assign/assert_with_array_ref_test.v index ea64a42af..0ba996fa4 100644 --- a/vlib/v/tests/assign/assert_with_array_ref_test.v +++ b/vlib/v/tests/assign/assert_with_array_ref_test.v @@ -6,5 +6,9 @@ fn test_main() { asu8 = &[myu16]! // look this - assert unsafe { asu8.vbytes(int(size_of_u16)) } == [u8(50), 0] + $if little_endian { + assert unsafe { asu8.vbytes(int(size_of_u16)) } == [u8(50), 0] + } $else { + assert unsafe { asu8.vbytes(int(size_of_u16)) } == [u8(0), 50] + } } -- 2.39.5