Skip to content

Commit 1cec25d

Browse files
Copilotantonmedv
andcommitted
Add comprehensive test coverage for unsigned integers in Abs()
Co-authored-by: antonmedv <141232+antonmedv@users.noreply.github.com>
1 parent 745e60a commit 1cec25d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

builtin/builtin_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,9 @@ func TestAbs_UnsignedIntegers(t *testing.T) {
892892
{"uint64", map[string]any{"x": uint64(42)}, "abs(x)", uint64(42)},
893893
{"uint zero", map[string]any{"x": uint(0)}, "abs(x)", uint(0)},
894894
{"uint8 zero", map[string]any{"x": uint8(0)}, "abs(x)", uint8(0)},
895+
{"uint16 zero", map[string]any{"x": uint16(0)}, "abs(x)", uint16(0)},
896+
{"uint32 zero", map[string]any{"x": uint32(0)}, "abs(x)", uint32(0)},
897+
{"uint64 zero", map[string]any{"x": uint64(0)}, "abs(x)", uint64(0)},
895898
}
896899

897900
for _, tt := range tests {

0 commit comments

Comments
 (0)