File tree 1 file changed +3
-2
lines changed
base/src/test/kotlin/proguard 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import java.io.StringWriter
10
10
* Test printing of the configuration (-printconfiguration option).
11
11
*/
12
12
class ConfigurationWriterTest : FreeSpec ({
13
+ val EOL = System .lineSeparator()
13
14
fun printConfiguration(rules: String ): String {
14
15
val out = StringWriter ()
15
16
val configuration = Configuration ()
@@ -31,11 +32,11 @@ class ConfigurationWriterTest : FreeSpec({
31
32
}
32
33
33
34
" Comments should not be quoted" {
34
- printConfiguration("# comment\n -keep class **") shouldBe " # comment\n -keep class **"
35
+ printConfiguration("# comment$ EOL -keep class **") shouldBe " # comment$EOL -keep class **"
35
36
}
36
37
37
38
" Hash characters in comments should not be quoted" {
38
- printConfiguration("# #comment\n -keep class **") shouldBe " # #comment\n -keep class **"
39
+ printConfiguration("# #comment$ EOL -keep class **") shouldBe " # #comment$EOL -keep class **"
39
40
}
40
41
}
41
42
You can’t perform that action at this time.
0 commit comments