author | Christian Urban <christian.urban@kcl.ac.uk> |
Mon, 08 Nov 2021 18:57:50 +0000 | |
changeset 413 | 9c80f411faa7 |
parent 401 | 9471c3b7ea02 |
permissions | -rw-r--r-- |
401 | 1 |
import C3a._ |
300 | 2 |
|
249 | 3 |
|
4 |
assert(syard(split("3 + 4 * ( 2 - 1 )")) == List("3", "4", "2", "1", "-", "*", "+")) |
|
5 |
assert(syard(split("( ( ( 3 ) ) + ( ( 4 + ( 5 ) ) ) )")) == List("3", "4", "5", "+", "+")) |
|
6 |
assert(syard(split("5 + 7 / 2")) == List("5", "7", "2", "/", "+")) |
|
7 |
assert(syard(split("5 * 7 / 2")) == List("5", "7", "*", "2", "/")) |