Skip to content

Commit

Permalink
test(ratio): fix ratio type
Browse files Browse the repository at this point in the history
  • Loading branch information
GreasySlug committed May 6, 2023
1 parent d9c9993 commit 8341c18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/eval/build_in_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn eval_interpolation_1() {
#[test]
#[ignore]
fn eval_interpolation_2() {
assert_eq!(eval("print! \"\\{0.005}\""), successful_output("0.005\n"));
assert_eq!(eval("print! \"\\{0.005}\""), successful_output("1/200\n"));
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/eval/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,5 @@ fn eval_assert_inequality_2() {
#[test]
#[ignore]
fn eval_ratio() {
assert_eq!(eval("print! 0.1234"), successful_output("0.1234\n"));
assert_eq!(eval("print! 0.1234"), successful_output("617/5000\n"));
}
10 changes: 5 additions & 5 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ fn exec_array() -> Result<(), ()> {
expect_success("tests/should_ok/array.er", 0)
}

#[test]
fn exec_set() -> Result<(), ()> {
expect_success("examples/set.er", 3)
}

#[test]
fn exec_class() -> Result<(), ()> {
expect_success("examples/class.er", 0)
Expand Down Expand Up @@ -307,11 +312,6 @@ fn exec_pyimport() -> Result<(), ()> {
}
}

#[test]
fn exec_set() -> Result<(), ()> {
expect_failure("examples/set.er", 3, 1)
}

#[test]
fn exec_side_effect() -> Result<(), ()> {
expect_failure("examples/side_effect.er", 5, 4)
Expand Down

0 comments on commit 8341c18

Please sign in to comment.