use of io.questdb.std.str.StringSink in project questdb by bluestreak01.
the class CharFunctionTest method testGetStrZ2.
@Test
public void testGetStrZ2() {
StringSink sink = new StringSink();
zeroFunc.getStr(null, sink);
TestUtils.assertEquals("", sink);
}
use of io.questdb.std.str.StringSink in project questdb by bluestreak01.
the class CharFunctionTest method testGetStr2.
@Test
public void testGetStr2() {
StringSink sink = new StringSink();
function.getStr(null, sink);
TestUtils.assertEquals("4", sink);
}
use of io.questdb.std.str.StringSink in project questdb by bluestreak01.
the class GeoHashFunctionTest method testGetStrIntoSink1.
@Test
public void testGetStrIntoSink1() {
Assert.assertEquals(GeoHashes.NULL, nullFunction.getGeoByte(null));
StringSink sink = new StringSink();
try {
nullFunction.getStr(null, sink);
Assert.fail();
} catch (UnsupportedOperationException e) {
// Good
}
}
use of io.questdb.std.str.StringSink in project questdb by bluestreak01.
the class NumbersTest method testLongToHex3.
@Test
public void testLongToHex3() {
long value = 0xbfbca5da8f0645L;
StringSink sink = new StringSink();
Numbers.appendHex(sink, value, false);
TestUtils.assertEquals(Long.toHexString(value), sink);
}
use of io.questdb.std.str.StringSink in project questdb by bluestreak01.
the class NumbersTest method testLongToHex2.
@Test
public void testLongToHex2() {
long value = 0x5374f5fbcef4819L;
StringSink sink = new StringSink();
Numbers.appendHex(sink, value, false);
TestUtils.assertEquals("0" + Long.toHexString(value), sink);
}
Aggregations