| ... | @@ -582,7 +582,7 @@ test "x86_64 Encoder helpers" { | ... | @@ -582,7 +582,7 @@ test "x86_64 Encoder helpers" { |
| 582 | Register.edi.low_id(), | 582 | Register.edi.low_id(), |
| 583 | ); | 583 | ); |
| 584 | | 584 | |
| 585 | testing.expectEqualSlices(u8, &[_]u8{ 0x0f, 0xaf, 0xc7 }, code.items); | 585 | try testing.expectEqualSlices(u8, &[_]u8{ 0x0f, 0xaf, 0xc7 }, code.items); |
| 586 | } | 586 | } |
| 587 | | 587 | |
| 588 | // simple mov | 588 | // simple mov |
| ... | @@ -602,7 +602,7 @@ test "x86_64 Encoder helpers" { | ... | @@ -602,7 +602,7 @@ test "x86_64 Encoder helpers" { |
| 602 | Register.eax.low_id(), | 602 | Register.eax.low_id(), |
| 603 | ); | 603 | ); |
| 604 | | 604 | |
| 605 | testing.expectEqualSlices(u8, &[_]u8{ 0x89, 0xf8 }, code.items); | 605 | try testing.expectEqualSlices(u8, &[_]u8{ 0x89, 0xf8 }, code.items); |
| 606 | } | 606 | } |
| 607 | | 607 | |
| 608 | // signed integer addition of 32-bit sign extended immediate to 64 bit register | 608 | // signed integer addition of 32-bit sign extended immediate to 64 bit register |
| ... | @@ -629,7 +629,7 @@ test "x86_64 Encoder helpers" { | ... | @@ -629,7 +629,7 @@ test "x86_64 Encoder helpers" { |
| 629 | ); | 629 | ); |
| 630 | encoder.imm32(2147483647); | 630 | encoder.imm32(2147483647); |
| 631 | | 631 | |
| 632 | testing.expectEqualSlices(u8, &[_]u8{ 0x48, 0x81, 0xc1, 0xff, 0xff, 0xff, 0x7f }, code.items); | 632 | try testing.expectEqualSlices(u8, &[_]u8{ 0x48, 0x81, 0xc1, 0xff, 0xff, 0xff, 0x7f }, code.items); |
| 633 | } | 633 | } |
| 634 | } | 634 | } |
| 635 | | 635 | |