Skip to content

Commit

Permalink
fix unicode tests
Browse files Browse the repository at this point in the history
\u unicode encodes don't seem to supported any more in Scala 3 (at least
in tripple quoted strings)
  • Loading branch information
jrudolph committed Sep 9, 2021
1 parent fbd903b commit a363745
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PrettyPrinterSpec extends Specification {
"""{
| "Boolean no": false,
| "Boolean yes":true,
| "Unic\u00f8de" : "Long string with newline\nescape",
| "Unicøde" : "Long string with newline\nescape",
| "key with \"quotes\"" : "string",
| "key with spaces": null,
| "number": -1.2323424E-5,
Expand All @@ -48,7 +48,7 @@ class PrettyPrinterSpec extends Specification {
"""{
| "Boolean no": false,
| "Boolean yes": true,
| "Unic\u00f8de": "Long string with newline\nescape",
| "Unicøde": "Long string with newline\nescape",
| "key with \"quotes\"": "string",
| "key with spaces": null,
| "number": -0.000012323424,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SortedPrinterSpec extends Specification {
"print a more complicated JsObject nicely aligned with fields sorted" in {
val obj =
"""{
| "Unic\u00f8de" : "Long string with newline\nescape",
| "Unicøde" : "Long string with newline\nescape",
| "Boolean no": false,
| "number": -1.2323424E-5,
| "key with \"quotes\"" : "string",
Expand All @@ -43,7 +43,7 @@ class SortedPrinterSpec extends Specification {
"""{
| "Boolean no": false,
| "Boolean yes": true,
| "Unic\u00f8de": "Long string with newline\nescape",
| "Unicøde": "Long string with newline\nescape",
| "key with \"quotes\"": "string",
| "key with spaces": null,
| "number": -0.000012323424,
Expand Down

0 comments on commit a363745

Please sign in to comment.