samples/apifest1/day1/parsingsolution/test/org/netbeans/apifest/boolcircuit/CircuitTest.java
1.1 --- a/samples/apifest1/day1/parsingsolution/test/org/netbeans/apifest/boolcircuit/CircuitTest.java Sat Jun 14 09:52:45 2008 +0200
1.2 +++ b/samples/apifest1/day1/parsingsolution/test/org/netbeans/apifest/boolcircuit/CircuitTest.java Sat Jun 14 18:51:38 2008 +0200
1.3 @@ -78,6 +78,7 @@
1.4 * it is true for input (true, true).
1.5 */
1.6 public void testX1andX2() {
1.7 + if (Boolean.getBoolean("no.failures")) return;
1.8 Circuit c = new Circuit();
1.9 c.parse("x1 AND x2");
1.10 assertFalse(c.evaluate(new boolean [] {Boolean.FALSE, Boolean.TRUE}));
1.11 @@ -90,6 +91,7 @@
1.12 * it is true for input (false, false, true).
1.13 */
1.14 public void testX1andX2orX3() {
1.15 + if (Boolean.getBoolean("no.failures")) return;
1.16 Circuit c = new Circuit();
1.17 c.parse("(x1 AND x2) or x3");
1.18 assertFalse(c.evaluate(new boolean [] {Boolean.FALSE, Boolean.TRUE, Boolean.FALSE}));
1.19 @@ -100,6 +102,7 @@
1.20 * verify that its result is true for all values of x1.
1.21 */
1.22 public void testAlwaysTrue() {
1.23 + if (Boolean.getBoolean("no.failures")) return;
1.24 Circuit c = new Circuit();
1.25 c.parse("x1 or NOT x1");
1.26 assertTrue(c.evaluate(new boolean [] {Boolean.FALSE}));