Package haikuvm.bench.from.darjeeling.testvm.classes

Examples of haikuvm.bench.from.darjeeling.testvm.classes.Child



public class BitManipulationTest {
  public static void test(int testBase)
  {
    Child child = new Child(new byte[4]);
    for (int i = 0; i < 10; i ++){
      for (int j = 0; j < child.getBytes().length; j ++)
      child.setCongested(true);
      child.getBytes()[0] = 0;
      Darjeeling.assertTrue(testBase + i*4, child.getCongested());
      child.setCongested(false);
      Darjeeling.assertTrue(testBase + i*4 + 1, !child.getCongested());
      child.setRoutingPull(true);
      Darjeeling.assertTrue(testBase + i*4 + 2, child.getRoutingPull());
      child.setRoutingPull(false);
      Darjeeling.assertTrue(testBase + i*4 + 3, !child.getRoutingPull());
    }
  }
View Full Code Here

TOP

Related Classes of haikuvm.bench.from.darjeeling.testvm.classes.Child

Copyright © 2018 www.massapicom. 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.