Skip to content

Commit b8854d7

Browse files
committed
HqlFixture.InsertIntoFromSelect_WithSelectClauseParameters() Avoid float equality conversion which might cause accuracy issues and which isn't relevant to the test.
1 parent 3e5652f commit b8854d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate.Test/Hql/Ast/HqlFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public void InsertIntoFromSelect_WithSelectClauseParameters()
304304

305305
// assert
306306
Assert.AreEqual(3, s.CreateCriteria<Animal>().SetProjection(Projections.RowCount())
307-
.Add(Restrictions.Eq("bodyWeight", 5.7f)).UniqueResult<int>());
307+
.Add(Restrictions.Gt("bodyWeight", 5.5f)).UniqueResult<int>());
308308

309309
s.CreateQuery("delete from Animal").ExecuteUpdate();
310310
s.Transaction.Commit();

0 commit comments

Comments
 (0)