Skip to content

Commit cd5c97c

Browse files
committed
Npgsql: Activate previously deactivated validation for float and double
1 parent f13a9aa commit cd5c97c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

by-language/csharp-npgsql/tests/DemoProgramTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public async Task TestAllTypesExample()
9898
Assert.Equal(DBNull.Value, row["null_integer"]);
9999
Assert.Equal(42, row["integer"]);
100100
Assert.Equal((Int64) 42, row["bigint"]);
101-
//Assert.Equal(42.42, (float) row["float"], 0.01);
102-
//Assert.Equal(42.42, (double) row["double"], 0.01);
101+
Assert.Equal(42.42, (float) row["float"], 0.01);
102+
Assert.Equal(42.42, (double) row["double"], 0.01);
103103
Assert.Equal(new decimal(42.42), row["decimal"]);
104104

105105
// Other scalar types

0 commit comments

Comments
 (0)