Join concatenated String constants in test into single String (#814)

This commit is contained in:
Kushal Pisavadia
2024-11-14 16:09:25 +00:00
committed by GitHub
parent 16af6b7bcc
commit 09bc09d058

View File

@@ -79,7 +79,7 @@ public class ConfigTest {
assertThat(t)
.isInstanceOf(NoSuchChildException.class)
.hasMessageStartingWith(
"Node `x` of type `pkl.base#Map` " + "does not have a key named `non-existing`.");
"Node `x` of type `pkl.base#Map` does not have a key named `non-existing`.");
}
@Test
@@ -90,8 +90,7 @@ public class ConfigTest {
assertThat(t)
.isInstanceOf(NoSuchChildException.class)
.hasMessageStartingWith(
"Leaf node `pigeon.age` of type `pkl.base#Int` "
+ "does not have a child named `non-existing`.");
"Leaf node `pigeon.age` of type `pkl.base#Int` does not have a child named `non-existing`.");
}
@Test