Skip to content

Commit

Permalink
Tidy up a few asserts.
Browse files Browse the repository at this point in the history
  • Loading branch information
csmith committed Mar 3, 2016
1 parent 67a9fa3 commit 942782e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions irc/test/com/dmdirc/parser/irc/ClientInfoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ public void testToString() {
@Test
public void testAwayState() {
final IRCClientInfo ci = new IRCClientInfo(new IRCParser(), null, "nick!ident@host");
assertFalse(ci.getAwayState() == AwayState.AWAY);
assertNotSame(AwayState.AWAY, ci.getAwayState());
ci.setAwayState(AwayState.HERE);
assertTrue(ci.getAwayState() == AwayState.HERE);
assertSame(AwayState.HERE, ci.getAwayState());
}

@Test
Expand Down
6 changes: 3 additions & 3 deletions irc/test/com/dmdirc/parser/irc/RegexStringListTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public void testMatches() {

final IgnoreList list = new IgnoreList(tempList);

assertTrue(list.matches("a!b@c") == 0);
assertTrue(list.matches("foo") == -1);
assertTrue(list.matches("Dataforce") == 1);
assertEquals(0, list.matches("a!b@c"));
assertEquals(-1, list.matches("foo"));
assertEquals(1, list.matches("Dataforce"));
assertFalse(list.matches(100, "Dataforce"));
assertTrue(list.matches(1, "Dataforce"));
}
Expand Down

0 comments on commit 942782e

Please sign in to comment.