Examples of BooleanStateStack


Examples of org.jruby.ast.visitor.rewriter.utils.BooleanStateStack

  protected void tearDown() throws Exception {
    super.tearDown();
  }

  public void testBooleanStateStack() {
    BooleanStateStack s = new BooleanStateStack(true, true);
    assertTrue(s.isTrue());
    s.revert();
    assertTrue(s.isTrue());
   
    s = new BooleanStateStack(false, false);
    assertFalse(s.isTrue());
    s.revert();
    assertFalse(s.isTrue());
  }
View Full Code Here

Examples of org.jruby.ast.visitor.rewriter.utils.BooleanStateStack

    s.revert();
    assertFalse(s.isTrue());
  }

  public void testSet() {
    BooleanStateStack s = new BooleanStateStack(true, true);
    assertTrue(s.isTrue());
    s.set(false);
    assertFalse(s.isTrue());
    s.revert();
    assertTrue(s.isTrue());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.