Package classes

Examples of classes.NBestList.addResult()


 
  @Test
  public void testAdd() {
    NBestList n = new NBestList();
    try {
      n.addResult("r1", 2, 2, 2);
      if (n.isEmpty())
        fail("AddResult not working");
    }
    catch (Exception e) {
      fail("AddResult not working, due to other exceptions: "
View Full Code Here


 
  @Test
  public void testName() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 2, 2, 2);
      if (!n.getName().equals("r1"))
        fail("getName() not working as expected!");
    }
    catch (Exception e) {
View Full Code Here

  @Test
  public void testName() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 2, 2, 2);
      if (!n.getName().equals("r1"))
        fail("getName() not working as expected!");
    }
    catch (Exception e) {
      fail("getName() not working, due to exceptions: " + e.getMessage());
View Full Code Here

 
  @Test
  public void testScore() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 22, 222, 23);
      if (n.getScore() != 2)
        fail("Score() not working as expected!");
    }
    catch (Exception e) {
View Full Code Here

  @Test
  public void testScore() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 22, 222, 23);
      if (n.getScore() != 2)
        fail("Score() not working as expected!");
    }
    catch (Exception e) {
      fail("Score() not working, due to exceptions: " + e.getMessage());
View Full Code Here

 
  @Test
  public void testDistance() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 22, 222, 23);
      if (n.getDistance() != 2)
        fail("getDistance() not working as expected!");
    }
    catch (Exception e) {
View Full Code Here

  @Test
  public void testDistance() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 22, 222, 23);
      if (n.getDistance() != 2)
        fail("getDistance() not working as expected!");
    }
    catch (Exception e) {
      fail("getDistance() not working, due to exceptions: "
View Full Code Here

 
  @Test
  public void testAngle() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 22, 222, 23);
      if (n.getAngle() != 2)
        fail("getAngle not working as expected!");
    }
    catch (Exception e) {
View Full Code Here

  @Test
  public void testAngle() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 22, 222, 23);
      if (n.getAngle() != 2)
        fail("getAngle not working as expected!");
    }
    catch (Exception e) {
      fail("getAngle not working, due to exceptions: " + e.getMessage());
View Full Code Here

 
  @Test
  public void testNames() {
    try {
      NBestList n = new NBestList();
      n.addResult("r1", 2, 2, 2);
      n.addResult("r2", 22, 222, 23);
      if (!(n.getNames()[0].equals("r1") && n.getNames()[1].equals("r2")))
        fail("Names() not working as expected!");
    }
    catch (Exception e) {
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.