Skip to content

Commit

Permalink
add test for invalid values
Browse files Browse the repository at this point in the history
  • Loading branch information
adetuyiTolu committed Nov 25, 2017
1 parent 3ba8de6 commit 0254836
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;

/**
* Example local unit test, which will execute on the development machine (host).
Expand Down Expand Up @@ -52,7 +53,12 @@ public void yoruba_isCorrect() throws Exception {
assertEquals(yoruba.getTime("4:00"), "Aago Merin");

}
@Test
public void yoruba_notCorrect() throws Exception {

assertNotEquals("This input is incorrect",yoruba.getTime("4:00"), "Aago Merinla");

}
@Test
public void igbo_isCorrect() throws Exception {

Expand Down

0 comments on commit 0254836

Please sign in to comment.