Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #64 #74

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Test for issue 75
This is a small test for issue #75
  • Loading branch information
Federico Vera committed Dec 9, 2016
commit 001c2891f7a7df2857ad4d7b8c58d4e6c6b27ad6
Original file line number Diff line number Diff line change
Expand Up @@ -2768,4 +2768,10 @@ public void testOperatorFactorial5() throws Exception {
Expression exp = new ExpressionBuilder("(-1)!").build();
exp.evaluate();
}

@Test
public void testFactorialIssue75() {
Expression exp = new ExpressionBuilder("3!-2!").build();
assertEquals(4, exp.evaluate(), 1e-12);
}
}