Skip to content

Commit

Permalink
Add test for internationalized IRIs
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Dec 12, 2024
1 parent 98f75cc commit d02eac8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/com/yetanalytics/ValueSerializationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ public void testUri() throws JsonProcessingException {
assertEquals(0, diff.size());
}

public void testUri2() throws JsonProcessingException {
String uriStr = "{\"id\": \"http://你好世界.com\"}";
ArrayNode diff = reserializeAndDiff(uriStr, Verb.class);
assertEquals(0, diff.size());
}

public void testTimestamp() throws JsonProcessingException {
String timestampStr = "{\"timestamp\": \"2023-10-27T09:03:21.722Z\"}";
ArrayNode diff = reserializeAndDiff(timestampStr, Statement.class);
Expand Down

0 comments on commit d02eac8

Please sign in to comment.