Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Change max line length to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
SL-Lee committed Dec 12, 2021
1 parent 7ff4637 commit 7e36aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
edition = "2021"
max_width = 80
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,14 @@ mod tests {
#[test]
fn prefix_evaluation_test() {
assert!(
12.0 - evaluate(ExpressionType::Prefix, "+ - 3 5 / * 7 6 3")
.unwrap()
< ERROR_MARGIN
12.0 - evaluate(ExpressionType::Prefix, "+ - 3 5 / * 7 6 3").unwrap() < ERROR_MARGIN
);
}

#[test]
fn postfix_evaluation_test() {
assert!(
12.0 - evaluate(ExpressionType::Postfix, "3 5 - 7 6 * 3 / +")
.unwrap()
< ERROR_MARGIN
12.0 - evaluate(ExpressionType::Postfix, "3 5 - 7 6 * 3 / +").unwrap() < ERROR_MARGIN
);
}
}

0 comments on commit 7e36aa6

Please sign in to comment.