Refactor and simplify AbstractCustomScriptCodegenTest

Remove copy-paste, use CodegenTestCase's infrastructure as much as
possible, use InTextDirectiveUtils instead of regexps
This commit is contained in:
Alexander Udalov
2018-05-02 16:04:31 +02:00
committed by Ilya Chernikov
parent c48bb9c981
commit 64f5c2c9a3
3 changed files with 40 additions and 126 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
// KOTLIN_SCRIPT_DEFINITION: org.jetbrains.kotlin.codegen.TestScriptWithSimpleEnvVars
// envVar: stringVar1 = abracadabra
// envVar: stringVar1=abracadabra
val res = stringVar1.drop(4)
// expected: res = cadabra
// expected: res=cadabra
+1 -1
View File
@@ -5,4 +5,4 @@
val res = drop(4)
// expected: res = cadabra
// expected: res=cadabra