(t *testing.T)
| 86 | assert.Equal(t, object.GetReturnObject(), 9) |
| 87 | } |
| 88 | func TestCompiler_CompilerIf2(t *testing.T) { |
| 89 | script := ` |
| 90 | int age=10; |
| 91 | if (age>10){ |
| 92 | age++; |
| 93 | }else{ |
| 94 | age--; |
| 95 | } |
| 96 | return abc; |
| 97 | ` |
| 98 | compiler := NewCompiler().Compiler(script) |
| 99 | assert.Nil(t, compiler) |
| 100 | } |
| 101 | |
| 102 | func TestCompiler_FunctionCall(t *testing.T) { |
| 103 | script := ` |
nothing calls this directly
no test coverage detected