From 18c9d155f31af4a9618c70df1d0ece709ef93341 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 23 Jun 2015 14:33:00 +0200 Subject: Fix the fact that float(int) != float(int(float(int))) --- test/basicstuff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/basicstuff.cpp') diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp index 3d7d74d4e..c6bbf19ee 100644 --- a/test/basicstuff.cpp +++ b/test/basicstuff.cpp @@ -223,7 +223,7 @@ void fixedSizeMatrixConstruction() for(int k=0; k<2; ++k) VERIFY(m2(k) == DenseIndex(raw[k])); for(int k=0; k<2; ++k) VERIFY(a2(k) == DenseIndex(raw[k])); for(int k=0; k<2; ++k) VERIFY(m3(k) == int(raw[k])); - for(int k=0; k<2; ++k) VERIFY(m4(k) == float(raw[k])); + for(int k=0; k<2; ++k) VERIFY((m4(k)) == Scalar(float(raw[k]))); } { Matrix m(raw), m1(raw[0]), m2( (DenseIndex(raw[0])) ), m3( (int(raw[0])) ); -- cgit v1.2.3