Skip to content

Commit

Permalink
Always pass test if output is "Succeeded".
Browse files Browse the repository at this point in the history
  • Loading branch information
hdwalters committed Dec 16, 2024
1 parent cdec3c9 commit a3d2eac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ pub fn test_amber(code: &str, result: &str, target: TestOutcomeTarget) {
TestOutcomeTarget::Success => match evaluated {
Ok(stdout) => {
let stdout = stdout.trim_end_matches('\n');
let result = result.trim_end_matches('\n');
assert_eq!(stdout, result)
if stdout != SUCCEEDED {
let result = result.trim_end_matches('\n');
assert_eq!(stdout, result)
}
}
Err(err) => {
panic!("ERROR: {}", err.message.unwrap())
Expand Down

0 comments on commit a3d2eac

Please sign in to comment.