()
| 53 | } |
| 54 | |
| 55 | @Test |
| 56 | public void evalLines() { |
| 57 | getRuntime().evaluate( |
| 58 | "var x = 'test'", |
| 59 | "var y = x"); |
| 60 | Reference y = getContext().resolve("y"); |
| 61 | assertThat(y) |
| 62 | .isNotNull() |
| 63 | .isInstanceOf(Reference.class); |
| 64 | assertThat(y.getValue(getContext())) |
| 65 | .isEqualTo("test"); |
| 66 | } |
| 67 | |
| 68 | @Test |
| 69 | public void assignsGlobalVariables() { |
nothing calls this directly
no test coverage detected