From 457cb4db0cf7f6fba62834613310cda97c299da3 Mon Sep 17 00:00:00 2001 From: serso Date: Mon, 31 Oct 2011 13:04:57 +0400 Subject: [PATCH] test for double factorial --- .../solovyev/android/calculator/model/CalculatorEngineTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/solovyev/android/calculator/model/CalculatorEngineTest.java b/src/test/java/org/solovyev/android/calculator/model/CalculatorEngineTest.java index a0b60a47..f8fde86e 100644 --- a/src/test/java/org/solovyev/android/calculator/model/CalculatorEngineTest.java +++ b/src/test/java/org/solovyev/android/calculator/model/CalculatorEngineTest.java @@ -109,6 +109,7 @@ public class CalculatorEngineTest { junit.framework.Assert.assertEquals("120", cm.evaluate(JsclOperation.numeric, "(2+2+1)!").getResult()); junit.framework.Assert.assertEquals("24", cm.evaluate(JsclOperation.numeric, "(2.0+2.0)!").getResult()); junit.framework.Assert.assertEquals("24", cm.evaluate(JsclOperation.numeric, "4.0!").getResult()); + junit.framework.Assert.assertEquals("720", cm.evaluate(JsclOperation.numeric, "3!!").getResult()); junit.framework.Assert.assertEquals("36.0", Expression.valueOf("3!^2").numeric().toString()); junit.framework.Assert.assertEquals("3.0", Expression.valueOf("cubic(27)").numeric().toString()); try {