(t *testing.T)
| 129 | |
| 130 | } |
| 131 | func TestArithmeticOperators5(t *testing.T) { |
| 132 | expression := ` |
| 133 | if ( (10 +10 ) == 20 ) { |
| 134 | return 10++ ; |
| 135 | } else { |
| 136 | return 20 ; |
| 137 | } |
| 138 | ` |
| 139 | var result = NewCompiler().Compiler(expression) |
| 140 | fmt.Println(result) |
| 141 | object := result.(*ReturnObject) |
| 142 | assert.Equal(t, object.GetReturnObject(), 11) |
| 143 | } |
| 144 | func TestArithmeticOperators6(t *testing.T) { |
| 145 | expression := ` |
| 146 | if ( (10 +10 ) == 20 ) { |
nothing calls this directly
no test coverage detected