File tree Expand file tree Collapse file tree 3 files changed +6
-59
lines changed
java/org/byteskript/skript/test Expand file tree Collapse file tree 3 files changed +6
-59
lines changed Original file line number Diff line number Diff line change 7
7
package org .byteskript .skript .test ;
8
8
9
9
import mx .kenzie .foundation .language .PostCompileClass ;
10
+ import org .byteskript .skript .lang .syntax .config .ConfigFile ;
10
11
import org .byteskript .skript .runtime .Script ;
11
12
import org .byteskript .skript .runtime .Skript ;
12
13
import org .byteskript .skript .runtime .config .ConfigEntry ;
20
21
import java .nio .charset .StandardCharsets ;
21
22
22
23
public class ConfigTest extends SkriptTest {
23
-
24
- private static final Skript skript = new Skript ();
25
- private static Script script ;
26
24
private final String test = """
27
25
28
26
key: value
@@ -42,20 +40,6 @@ public class ConfigTest extends SkriptTest {
42
40
43
41
""" ;
44
42
45
- @ BeforeClass
46
- public static void start () throws Throwable {
47
- final PostCompileClass cls = skript .compileScript (OperatorsTest .class .getClassLoader ()
48
- .getResourceAsStream ("configs.bsk" ), "skript.configs" );
49
- script = skript .loadScript (cls );
50
- }
51
-
52
- @ Test
53
- public void basic () throws Throwable {
54
- final Member function = script .getFunction ("test" );
55
- assert function != null ;
56
- function .invoke ();
57
- }
58
-
59
43
@ Test
60
44
public void testReadConfig () throws Throwable {
61
45
final InputStream stream = new ByteArrayInputStream (test .getBytes (StandardCharsets .UTF_8 ));
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -23,3 +23,8 @@ function basic:
23
23
assert "hello " + "there" is "hello there": "String joining failed."
24
24
assert "Hello " + "<there!" is "Hello <there!": "String joining failed."
25
25
26
+ function test:
27
+ trigger:
28
+ run looping()
29
+ run basic()
30
+ return true
You can’t perform that action at this time.
0 commit comments