diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-06-23 14:33:00 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-06-23 14:33:00 +0200 |
commit | 18c9d155f31af4a9618c70df1d0ece709ef93341 (patch) | |
tree | 9bf52615c32f60f7d68fcb3704988fa18ab0b9f7 /test/basicstuff.cpp | |
parent | 71523a2e25eb0c12eaaccb9a2f51d5db127e3766 (diff) |
Fix the fact that float(int) != float(int(float(int)))
Diffstat (limited to 'test/basicstuff.cpp')
-rw-r--r-- | test/basicstuff.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Scalar,1,1> m(raw), m1(raw[0]), m2( (DenseIndex(raw[0])) ), m3( (int(raw[0])) ); |