Package com.wesleyhome.math.equation

Examples of com.wesleyhome.math.equation.SmartNumber


    assertThat(SmartNumber.eq(dCommission), is(not(equalTo(actual))));
  }

  @Test
  public void testEquals() throws Exception {
    SmartNumber v = eq(10);
    assertThat(v, is(equalTo(v)));
    assertThat(v, is(not(equalTo(eq(11)))));
    assertThat(v, is(not(equalTo(null))));
    assertThat(v.equals(""), is(false));
  }
View Full Code Here


    assertThat(v.equals(""), is(false));
  }

  @Test
  public void testHashCode() throws Exception {
    SmartNumber v1 = eq(10);
    SmartNumber v2 = eq(10);
    assertThat(v1.hashCode(), is(equalTo(v2.hashCode())));
  }
View Full Code Here

TOP

Related Classes of com.wesleyhome.math.equation.SmartNumber

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.