Skip to content

Commit

Permalink
add test for converting negative values
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Oct 15, 2023
1 parent 29d6954 commit 66ae825
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestInt128Format(t *testing.T) {
{"%v", Int128{0, 0}, "0"},
{"%v", Int128{0, 1}.Neg(), "-1"},
{"%#v", Int128{0, 0}, "Int128{H: 0x0000000000000000, L: 0x0000000000000000}"},
{"%#v", Int128{0, 1}.Neg(), "Int128{H: -0x000000000000001, L: 0xffffffffffffffff}"},
}

for _, tt := range tests {
Expand Down

0 comments on commit 66ae825

Please sign in to comment.