Skip to content

Commit 9a407bb

Browse files
Enhance extreme values test to verify both e+ and e- notation
Co-authored-by: dlevy-msft-sql <[email protected]>
1 parent b1a3ced commit 9a407bb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pkg/sqlcmd/format_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ func TestFormatterFloatFormattingExtremeValues(t *testing.T) {
211211

212212
output := buf.buf.String()
213213

214-
// Verify that extremely large/small values use scientific notation
214+
// Verify that extremely large values use scientific notation with positive exponent
215215
// (because decimal format would exceed the 24-char column width)
216-
assert.Contains(t, output, "e+", "Output should contain scientific notation for extreme values")
216+
assert.Contains(t, output, "e+", "Output should contain scientific notation (e+) for very large values")
217+
218+
// Verify that extremely small values use scientific notation with negative exponent
219+
assert.Contains(t, output, "e-", "Output should contain scientific notation (e-) for very small values")
217220
}

0 commit comments

Comments
 (0)