Search in sources :

Example 6 with StringKvString

use of com.torodb.kvdocument.values.heap.StringKvString in project torodb by torodb.

the class PostgreSqlValueToCopyConverterTest method testStringWithSpecials.

@Test
public void testStringWithSpecials() {
    new StringKvString("a string with a \\b, \\f, \\n, \\r, \\t, \\v, \\1, \\12, \\123, \\xa, \\xff").accept(visitor, sb);
    assertEquals("a string with a \\\\b, \\\\f, \\\\n, \\\\r, \\\\t, \\\\v, \\\\1, \\\\12, \\\\123, \\\\xa, \\\\xff", sb.toString());
}
Also used : StringKvString(com.torodb.kvdocument.values.heap.StringKvString) Test(org.junit.Test)

Aggregations

StringKvString (com.torodb.kvdocument.values.heap.StringKvString)6 Test (org.junit.Test)6