Skip to content

Commit

Permalink
Fix the toString address regexp in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Jun 6, 2021
1 parent 9eb0a78 commit 7d2cf68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/test/java/com/example/RecordExampleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void testToString() {

assertEquals(
"RecordExample[i=42,s=yeah,l=100500,f=0.5,d=5.0,arr=[Ljava.lang.String;@hash]",
Objects.toString(r).replaceAll("@[a-f0-9]{8}", "@hash")
Objects.toString(r).replaceAll(";@[a-f0-9]+", ";@hash")
);
}

Expand Down

0 comments on commit 7d2cf68

Please sign in to comment.