You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func testNumericParsing()throws{letconn=tryPostgresConnection.test(on: eventLoop).wait()defer{try! conn.close().wait()}letrows=try conn.query(""" select '1234.5678'::numeric as a, '-123.456'::numeric as b, '123456.789123'::numeric as c, '3.14159265358979'::numeric as d, '10000'::numeric as e, '0.00001'::numeric as f""").wait()XCTAssertEqual(rows[0].column("a")?.string,"1234.5678")XCTAssertEqual(rows[0].column("b")?.string,"-123.456")XCTAssertEqual(rows[0].column("c")?.string,"123456.789123")XCTAssertEqual(rows[0].column("d")?.string,"3.14159265358979")XCTAssertEqual(rows[0].column("e")?.string,"10000")XCTAssertEqual(rows[0].column("f")?.string,"0.00001")}
swift test --filter testNumericParsing
...
PostgresNIOTests.testNumericParsing : XCTAssertEqual failed: ("Optional("1")") is not equal to ("Optional("10000")") -
PostgresNIOTests.testNumericParsing : XCTAssertEqual failed: ("Optional("0.1000")") is not equal to ("Optional("0.00001")") -
The text was updated successfully, but these errors were encountered:
DB: PostgreSQL 11
Tests:
The text was updated successfully, but these errors were encountered: