Skip to content

Commit

Permalink
Use rounded value for assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Sep 16, 2024
1 parent e06c20c commit 6d60846
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Snowflake.Data.Tests/IntegrationTests/VectorTypesIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ public void TestSelectFloatVectorWithMinAndMaxFloatValues()
Assert.AreEqual(float.MinValue, arr[0]);
Assert.AreEqual(float.MaxValue, arr[1]);
#endif

}
}
}
Expand Down Expand Up @@ -318,9 +317,9 @@ public void TestSelectFloatVectorWithGreaterThanSixDigitPrecision()
Assert.AreEqual("[1.123457,2.123457,3.123457]", reader.GetString(0));

var arr = reader.GetArray<float>(0);
Assert.AreEqual(1.123456789f, arr[0], 0.000001f);
Assert.AreEqual(2.123456789f, arr[1], 0.000001f);
Assert.AreEqual(3.123456789f, arr[2], 0.000001f);
Assert.AreEqual(1.123457f, arr[0]);
Assert.AreEqual(2.123457f, arr[1]);
Assert.AreEqual(3.123457f, arr[2]);
}
}
}
Expand Down

0 comments on commit 6d60846

Please sign in to comment.