Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public abstract class Value implements Serializable {
*/
public static final Timestamp COMMIT_TIMESTAMP = Timestamp.ofTimeMicroseconds(0L);

private static final int MAX_DEBUG_STRING_LENGTH = 32;
private static final int MAX_DEBUG_STRING_LENGTH = 36;
private static final String ELLIPSIS = "...";
private static final String NULL_STRING = "NULL";
private static final char LIST_SEPERATOR = ',';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ public void stringNull() {

@Test
public void stringLong() {
String str = "aaaaaaaaaabbbbbbbbbbccccccccccdddddddddd";
String str = "aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeee";
Value v = Value.string(str);
assertThat(v.getString()).isEqualTo(str);
assertThat(v.toString()).hasLength(32);
assertThat(v.toString()).startsWith(str.substring(0, 32 - 3));
assertThat(v.toString()).hasLength(36);
assertThat(v.toString()).startsWith(str.substring(0, 36 - 3));
assertThat(v.toString()).endsWith("...");
}

Expand Down