Commit 91ec0fd
committed
Add some simple tests for eval
With the custom SciJava Jython ScriptEngine implementation, the eval
support was rather broken. For example, the expression "v=1" would say:
SyntaxError: ("mismatched input '=' expecting EOF", ('<string>', 1, 1, 'v=1\n'))
Fortunately, the stock Jython 2.7.0 ScriptEngine works.1 parent 6cd8345 commit 91ec0fd
File tree
1 file changed
+19
-0
lines changed- src/test/java/org/scijava/plugins/scripting/jython
1 file changed
+19
-0
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
151 | 170 | | |
0 commit comments