Skip to content

Commit 52cc53c

Browse files
Fix normalizing IR strings in LSP tests (#978)
Replacing all occurrences of whitespace by a single space is not a valid approach since expected and actual output can differ in whitespace (e.g. newlines).
1 parent ea43e27 commit 52cc53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

effekt/jvm/src/test/scala/effekt/LSPTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class LSPTests extends FunSuite {
5252
*/
5353
def normalizeIRString(ir: String): String = {
5454
ir.replaceAll("_\\d+", "_whatever")
55-
.replaceAll("\\s+", " ")
55+
.replaceAll("\\s+", "")
5656
}
5757

5858
def assertIREquals(ir: String, expected: String): Unit = {

0 commit comments

Comments
 (0)