MCPcopy Create free account
hub / github.com/apache/pig / testCompare

Method testCompare

test/org/apache/pig/test/TestNull.java:236–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 }
235
236 @Test
237 public void testCompare() {
238 Object o1 = new Object();
239 Object o2 = null;
240 assertTrue(DataType.compare(o1, o2, DataType.NULL, DataType.NULL) > 0);
241
242 o1 = null;
243 o2 = new Object();
244 assertTrue(DataType.compare(o1, o2, DataType.NULL, DataType.NULL) < 0);
245
246 o1 = null;
247 o2 = null;
248 assertTrue(DataType.compare(o1, o2, DataType.NULL, DataType.NULL) == 0);
249 }
250
251 @Test
252 public void testOperator() throws ExecException {

Callers

nothing calls this directly

Calls 1

compareMethod · 0.95

Tested by

no test coverage detected