Skip to content

Commit bb5d504

Browse files
Fix trailing whitespace in test file
Co-authored-by: dlevy-msft-sql <[email protected]>
1 parent 5a4abc5 commit bb5d504

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pkg/sqlcmd/format_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func TestFormatterFloatFormatting(t *testing.T) {
165165
// while ODBC sqlcmd uses decimal notation
166166
s, buf := setupSqlCmdWithMemoryOutput(t)
167167
defer buf.Close()
168-
168+
169169
// Test query with float values from the issue
170170
query := `SELECT
171171
CAST(788991.19988463481 AS FLOAT) as Longitude1,
@@ -174,18 +174,18 @@ func TestFormatterFloatFormatting(t *testing.T) {
174174
CAST(4712632.075629076 AS FLOAT) as Latitude2,
175175
CAST(788569.36558582436 AS FLOAT) as Longitude3,
176176
CAST(4714608.0418091472 AS FLOAT) as Latitude3`
177-
177+
178178
err := runSqlCmd(t, s, []string{query, "GO"})
179179
assert.NoError(t, err, "runSqlCmd returned error")
180-
180+
181181
output := buf.buf.String()
182-
182+
183183
// Verify that the output contains decimal notation, not scientific notation
184184
// Scientific notation would look like "4.713347310380896e+06"
185185
// Decimal notation should look like "4713347.3103808956"
186186
assert.NotContains(t, output, "e+", "Output should not contain scientific notation (e+)")
187187
assert.NotContains(t, output, "E+", "Output should not contain scientific notation (E+)")
188-
188+
189189
// Verify that specific expected values are present (allowing for precision differences)
190190
assert.Contains(t, output, "788991.1998846", "Output should contain decimal representation of Longitude1")
191191
assert.Contains(t, output, "4713347.310380", "Output should contain decimal representation of Latitude1")

0 commit comments

Comments
 (0)