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

Method testFloat

test/org/apache/pig/test/TestTextDataParser.java:106–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 @Test
107 public void testFloat() throws Exception{
108 String myFloat = "0.1";
109 Float f = ps.getLoadCaster().bytesToFloat(myFloat.getBytes());
110 assertEquals(Float.valueOf(0.1f), f);
111 }
112
113 @Test
114 public void testDouble() throws Exception{

Callers

nothing calls this directly

Calls 4

bytesToFloatMethod · 0.65
getLoadCasterMethod · 0.65
getBytesMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected