(t *testing.T)
| 115 | fmt.Println(result) |
| 116 | } |
| 117 | func TestArithmeticOperators4(t *testing.T) { |
| 118 | expression := ` |
| 119 | if ( (10 +10 ) == 20 ) { |
| 120 | return true ; |
| 121 | } else { |
| 122 | return 20 ; |
| 123 | } |
| 124 | ` |
| 125 | var result = NewCompiler().Compiler(expression) |
| 126 | fmt.Println(result) |
| 127 | object := result.(*ReturnObject) |
| 128 | assert.Equal(t, object.GetReturnObject(), true) |
| 129 | |
| 130 | } |
| 131 | func TestArithmeticOperators5(t *testing.T) { |
| 132 | expression := ` |
| 133 | if ( (10 +10 ) == 20 ) { |
nothing calls this directly
no test coverage detected