v2 / vlib / v / tests / infix_autoderef_comparison_test.v
8 lines · 7 sloc · 199 bytes · 1f5df6f827d46728321ed9fec3fe7d53c7b9df04
Raw
1fn compare_int_arrays(mut left []int, right []int) bool {
2 return left == right
3}
4
5fn test_mut_array_arg_comparison_still_works() {
6 mut left := [1, 2]
7 assert compare_int_arrays(mut left, [1, 2])
8}
9