Skip to content
Snippets Groups Projects
Commit 033d0919 authored by Christian Engwer's avatar Christian Engwer
Browse files

[test] avoid explicit casts to make sure the operators work correctly (see FS#1457)

parent 86b012f5
No related branches found
No related tags found
No related merge requests found
......@@ -132,25 +132,25 @@ struct ScalarOperatorTest
a = v + a;
a = v - a;
a = v * a;
a += (ft)1; // make sure a!=0
a += 1; // make sure a!=0
a = v / a;
v = v + a;
v = v - a;
v = v * a;
a += (ft)1; // make sure a!=0
a += 1; // make sure a!=0
v = v / a;
a = a + v;
a = a - v;
a = a * v;
v += (ft)1; // make sure v!=0
v += 1; // make sure v!=0
a = a / v;
v = a + v;
v = a - v;
v = a * v;
v += (ft)1; // make sure v!=0
v += 1; // make sure v!=0
v = a / v;
v -= v;
......@@ -158,7 +158,7 @@ struct ScalarOperatorTest
v += v;
v += a;
v *= a;
a += (ft)1; // make sure a!=0
a += 1; // make sure a!=0
v /= a;
b = (v == a);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment