Examples of Tuple0


Examples of org.grainednoise.deferred.core.Tuple.Tuple0

  /**
   * Test method for {@link org.grainednoise.deferred.core.Tuple#hashCode()}.
   */
  @Test
  public void testHashCode() {
    Tuple0 tuple0 = Tuple.of();
    Tuple1<Object> tuple1 = Tuple.of(null);
    Tuple2<Object, Object> tuple2 = Tuple.of(null, null);
   
    assertNotSame(tuple0, tuple1);
    assertNotSame(tuple0, tuple2);
    assertNotSame(tuple1, tuple2);
   
    assertNotSame(tuple0.hashCode(), tuple1.hashCode());
    assertNotSame(tuple0.hashCode(), tuple2.hashCode());
    assertNotSame(tuple1.hashCode(), tuple2.hashCode());
  }
View Full Code Here

Examples of org.grainednoise.deferred.core.Tuple.Tuple0

  /**
   * Test method for {@link org.grainednoise.deferred.core.Tuple#of()}.
   */
  @Test
  public void testTuple0() {
    Tuple0 tuple0 = Tuple.of();
    assertTrue(tuple0 instanceof Tuple);
    assertNotNull(tuple0);
    assertEquals(0, tuple0.procuctArity());
   
    assertIndexError(tuple0, 0);
    assertIndexError(tuple0, -1);
    assertIndexError(tuple0, 1);
  }
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.