File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
java/com/annimon/ownlang/parser Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
import com .annimon .ownlang .parser .ast .FunctionDefineStatement ;
7
7
import com .annimon .ownlang .parser .ast .Statement ;
8
8
import com .annimon .ownlang .parser .ast .Visitor ;
9
+ import com .annimon .ownlang .parser .optimization .OptimizationStage ;
9
10
import com .annimon .ownlang .parser .visitors .AbstractVisitor ;
10
11
import com .annimon .ownlang .stages .*;
11
12
import org .junit .jupiter .api .BeforeAll ;
@@ -31,6 +32,7 @@ public static void createStage() {
31
32
testPipeline = new SourceLoaderStage ()
32
33
.then (new LexerStage ())
33
34
.then (new ParserStage ())
35
+ .thenConditional (true , new OptimizationStage (9 ))
34
36
.then (new ExecutionStage ())
35
37
.then ((stagesData , input ) -> {
36
38
input .accept (testFunctionsExecutor );
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ def testInScope() {
16
16
assertEquals("fallback", PI)
17
17
18
18
useMath()
19
-
20
- assertEquals("fallback", PI)
19
+ assertNotEquals("fallback", PI)
21
20
assertEquals(3, abs(-3))
22
21
}
23
22
You can’t perform that action at this time.
0 commit comments