Skip to content

Commit 6ead1d0

Browse files
blaine-arcjetsd2k
authored andcommitted
fix minInt16
1 parent cc801f4 commit 6ead1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/instructions/instructions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func Test_S16Roundtrip(t *testing.T) {
9696
}
9797
defer ins.Close(t.Context())
9898

99-
for expected := range inclusive[int16](math.MaxInt16, math.MaxInt16) {
99+
for expected := range inclusive[int16](math.MinInt16, math.MaxInt16) {
100100
actual := ins.S16Roundtrip(t.Context(), expected)
101101
if actual != expected {
102102
t.Errorf("expected: %d, but got: %d", expected, actual)

0 commit comments

Comments
 (0)