Refactor scratch tests: add ability to set scratch options in test file

This commit is contained in:
Natalia Selezneva
2019-05-29 15:56:18 +03:00
parent b59bd9d6a6
commit a6221cf594
55 changed files with 218 additions and 83 deletions
+5 -3
View File
@@ -1,10 +1,12 @@
// REPL_MODE: true
val a = "a".repeat(100)
a // RESULT: res1: kotlin.String = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
val b = "0123456789\n".repeat(10)
b // RESULT: res3: kotlin.String = 0123456789...
println("0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789") // OUTPUT: 01...
/** veryLongOutput.kts:2 res1: kotlin.String = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa */
/** veryLongOutput.kts:4 res3: kotlin.String = 0123456789
/** veryLongOutput.kts:4 res1: kotlin.String = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa */
/** veryLongOutput.kts:6 res3: kotlin.String = 0123456789
0123456789
0123456789
0123456789
@@ -14,4 +16,4 @@ println("01234567890123456789012345678901234567890123456789012345678901234567890
0123456789
0123456789
0123456789 */
/** veryLongOutput.kts:5 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 */
/** veryLongOutput.kts:7 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 */