Normalize text before tokenizing

Otherwise column numbers are messed up on windows
This commit is contained in:
Clément Fournier
2020-06-12 17:26:44 +02:00
parent 1540ec6d91
commit 826bc36331

View File

@ -36,7 +36,8 @@ abstract class BaseTextComparisonTest {
"Source file $sourceFile is missing"
}
val actual = transformTextContent(sourceFile.readText()) // UTF-8
val sourceText = sourceFile.readText(Charsets.UTF_8).normalize()
val actual = transformTextContent(sourceText)
if (!expectedFile.exists()) {
expectedFile.writeText(actual)