From e289490e18bf66a4e950781db0c8aaeab351afa4 Mon Sep 17 00:00:00 2001 From: Davy Landman Date: Thu, 19 Sep 2024 16:26:40 +0200 Subject: [PATCH] More tests for the reader and write equality --- .../java/io/usethesource/vallang/basic/BasicValueSmokeTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/io/usethesource/vallang/basic/BasicValueSmokeTest.java b/src/test/java/io/usethesource/vallang/basic/BasicValueSmokeTest.java index 57763119..76413036 100644 --- a/src/test/java/io/usethesource/vallang/basic/BasicValueSmokeTest.java +++ b/src/test/java/io/usethesource/vallang/basic/BasicValueSmokeTest.java @@ -382,6 +382,8 @@ private String readerToString(IString a) { private void assertEqualWriteAndRead(IString one, IString two) { assertEquals(writerToString(one), writerToString(two), "IString::write had different results"); assertEquals(readerToString(one), readerToString(two), "IString::asReader had different results"); + assertEquals(one.getValue(), writerToString(one), "IString::write should be the same as getValue"); + assertEquals(one.getValue(), readerToString(one), "IString::asReader should be the same as getValue"); } private void assertEqualCharAt(IString one, IString two) {