Commit ae297e6f authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

tests: fix sign cast in comparison

parent aa8aa45e
...@@ -782,7 +782,7 @@ main() ...@@ -782,7 +782,7 @@ main()
do { do {
st = sim.run(t); st = sim.run(t);
expect(irt::is_success(st)); expect(irt::is_success(st));
expect(cnt.number <= static_cast<long unsigned>(t)); expect(cnt.number <= static_cast<irt::i64>(t));
} while (t < sim.end); } while (t < sim.end);
expect(cnt.number == 9_ul); expect(cnt.number == 9_ul);
...@@ -836,7 +836,7 @@ main() ...@@ -836,7 +836,7 @@ main()
do { do {
st = sim.run(t); st = sim.run(t);
expect(irt::is_success(st)); expect(irt::is_success(st));
expect(cnt.number <= static_cast<long unsigned>(t)); expect(cnt.number <= static_cast<irt::i64>(t));
} while (t < 10.0); } while (t < 10.0);
expect(cnt.number == 9_ul); expect(cnt.number == 9_ul);
...@@ -892,7 +892,7 @@ main() ...@@ -892,7 +892,7 @@ main()
do { do {
st = sim.run(t); st = sim.run(t);
expect(irt::is_success(st)); expect(irt::is_success(st));
expect(cnt.number <= static_cast<long unsigned>(3 * t)); expect(cnt.number <= static_cast<irt::i64>(3 * t));
} while (t < 10.0); } while (t < 10.0);
expect(cnt.number == 27_ul); expect(cnt.number == 27_ul);
...@@ -923,7 +923,7 @@ main() ...@@ -923,7 +923,7 @@ main()
auto st = sim.run(t); auto st = sim.run(t);
!expect(irt::is_success(st)); !expect(irt::is_success(st));
expect(time_fun.value == t * t); expect(time_fun.value == t * t);
expect(cnt.number <= static_cast<long unsigned>(t)); expect(cnt.number <= static_cast<irt::i64>(t));
} while (t < 30); } while (t < 30);
}; };
...@@ -1235,5 +1235,3 @@ main() ...@@ -1235,5 +1235,3 @@ main()
} while (t < 120); } while (t < 120);
}; };
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment