Skip to content

Commit

Permalink
_Really_ fix minimum nightly on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt authored Mar 29, 2020
1 parent ac44990 commit 41360d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_arithmetics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ fn unary_arithmetic() {
let gil = Python::acquire_gil();
let py = gil.python();

let c = PyCell::new(py, UnaryArithmetic::new(2.718_281)).unwrap();
py_run!(py, c, "assert repr(-c) == 'UA(-2.718281)'");
py_run!(py, c, "assert repr(+c) == 'UA(2.718281)'");
py_run!(py, c, "assert repr(abs(c)) == 'UA(2.718281)'");
let c = PyCell::new(py, UnaryArithmetic::new(2.7)).unwrap();
py_run!(py, c, "assert repr(-c) == 'UA(-2.7)'");
py_run!(py, c, "assert repr(+c) == 'UA(2.7)'");
py_run!(py, c, "assert repr(abs(c)) == 'UA(2.7)'");
py_run!(py, c, "assert repr(round(c)) == 'UA(3)'");
py_run!(py, c, "assert repr(round(c, 1)) == 'UA(3)'");
}
Expand Down

0 comments on commit 41360d1

Please sign in to comment.