Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

made tests for negative more consistent

  • Loading branch information...
commit a23f19942378d2293c899dbb8548736c9d43ec6f 1 parent 5c78d9c
Nate McCall zznate authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/com/backupify/db/DatumTypeTest.java
6 test/com/backupify/db/DatumTypeTest.java
View
@@ -99,8 +99,10 @@ public void testSimple()
assertTrue("aaron4", c < 0);
// more negative tests, remember the comparator returns reverse values
- assertTrue("aaron5", 0 > DatumType.instance.compare(ByteBufferUtil.bytes("foo~-123"), ByteBufferUtil.bytes("foo~123")));
- assertTrue("aaron6", 0 < DatumType.instance.compare(ByteBufferUtil.bytes("foo~123"), ByteBufferUtil.bytes("foo~-123")));
+ c = DatumType.instance.compare(ByteBufferUtil.bytes("foo~-123"), ByteBufferUtil.bytes("foo~123"));
+ assertTrue("aaron5", c > 0);
+ c = DatumType.instance.compare(ByteBufferUtil.bytes("foo~123"), ByteBufferUtil.bytes("foo~-123"));
+ assertTrue("aaron6", c < 0);
}
Please sign in to comment.
Something went wrong with that request. Please try again.