620 |
620 |
|
621 |
621 |
Code code = compiler.compileExpression(source);
|
622 |
622 |
code.link(this.createSymbolTable());
|
623 |
|
checkEquals( "(:IN (\"a\") + \"b\")", code.toString());
|
|
623 |
checkEquals( "(:(\"a\") + \"b\")", code.toString());
|
624 |
624 |
}
|
625 |
625 |
|
626 |
626 |
public void testColon2() {
|
627 |
|
String source = ":IN (a+b)+c";
|
|
627 |
String source = ":(a+b)+c";
|
628 |
628 |
|
629 |
629 |
Compiler compiler = createCompiler();
|
630 |
630 |
|
631 |
631 |
Code code = compiler.compileExpression(source);
|
632 |
632 |
code.link(this.createSymbolTable());
|
633 |
|
checkEquals( "(:IN ((\"a\" + \"b\")) + \"c\")", code.toString());
|
|
633 |
checkEquals( "(:((\"a\" + \"b\")) + \"c\")", code.toString());
|
634 |
634 |
}
|
635 |
635 |
|
636 |
636 |
|
... | ... | |
641 |
641 |
|
642 |
642 |
Code code = compiler.compileExpression(source);
|
643 |
643 |
code.link(this.createSymbolTable());
|
644 |
|
checkEquals( "GETATTR(:IN (\"a\"), 'c')", code.toString());
|
|
644 |
checkEquals( "GETATTR(:(\"a\"), 'c')", code.toString());
|
645 |
645 |
}
|
646 |
646 |
|
647 |
647 |
public void testColon4() {
|
... | ... | |
652 |
652 |
|
653 |
653 |
Code code = compiler.compileExpression(source);
|
654 |
654 |
code.link(this.createSymbolTable());
|
655 |
|
checkEquals( "GETATTR(:IN (\"a\"), 'c')", code.toString());
|
|
655 |
checkEquals( "GETATTR(:(\"a\"), 'c')", code.toString());
|
656 |
656 |
} catch(Throwable t) {
|
657 |
657 |
t.printStackTrace();
|
658 |
658 |
throw t;
|
... | ... | |
667 |
667 |
|
668 |
668 |
Code code = compiler.compileExpression(source);
|
669 |
669 |
code.link(this.createSymbolTable());
|
670 |
|
checkEquals( ":IN (\"a\".\"c\")", code.toString());
|
|
670 |
checkEquals( ":(\"a\".\"c\")", code.toString());
|
671 |
671 |
} catch(Throwable t) {
|
672 |
672 |
t.printStackTrace();
|
673 |
673 |
throw t;
|
... | ... | |
681 |
681 |
|
682 |
682 |
Code code = compiler.compileExpression(source);
|
683 |
683 |
code.link(this.createSymbolTable());
|
684 |
|
checkEquals("testHostexpression1", "BEGIN \"v1\" := 10; \"v2\" := :IN (\"v1\"); END ", code.toString());
|
|
684 |
checkEquals("testHostexpression1", "BEGIN \"v1\" := 10; \"v2\" := :(\"v1\"); END ", code.toString());
|
685 |
685 |
}
|
686 |
686 |
|
687 |
687 |
public void testNotLike1() {
|