Fix unit test failure due to Windows end-of-line characters (#4271)

This commit is contained in:
Dominic Fox 2018-11-21 15:56:56 +00:00 committed by GitHub
parent 8f5e62a326
commit 227f5c7e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,8 @@ class ClassCarpentingTypeLoaderTests {
val person = personType.make("Arthur Putey", 42, address, listOf(previousAddress))
val personJson = ObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(person)
.replace("\r\n", "\n")
assertEquals("""
{
"name" : "Arthur Putey",