Skip to content

Commit 962a67d

Browse files
committed
test: Increase test coverage for convert
Adds more tests for the convert package to increase overall test coverage. - Adds tests for FromFloat64WithMode in convert_extra_test.go.
1 parent fd0baa9 commit 962a67d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

convert_extra_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ func TestFromFloat64WithModeExtra(t *testing.T) {
202202
{"Overflow", 70000.0, ModeIEEE, RoundNearestEven, PositiveInfinity, false},
203203
{"Underflow", 1e-40, ModeIEEE, RoundNearestEven, PositiveZero, false},
204204
{"Underflow Strict", 1e-40, ModeStrict, RoundNearestEven, 0, true},
205+
{"Subnormal", 1e-39, ModeIEEE, RoundNearestEven, FromBits(0x0000), false},
205206
}
206207

207208
for _, tc := range testCases {

0 commit comments

Comments
 (0)