diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/num.ur | 6 | ||||
-rw-r--r-- | tests/ord.ur | 3 | ||||
-rw-r--r-- | tests/ord.urp | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/tests/num.ur b/tests/num.ur index 015f227c..0fa2ffdd 100644 --- a/tests/num.ur +++ b/tests/num.ur @@ -1,5 +1,5 @@ fun main () : transaction page = return <xml><body> - {txt _ (-1)}, {txt _ (1 + 1)}, {txt _ (9 - 3)}, {txt _ (9 * 3)}, {txt _ (9 / 3)}, {txt _ (9 % 3)}<br/> - {txt _ (-1.1)}, {txt _ (1.0 + 1.1)}, {txt _ (9.1 - 3.0)}, {txt _ (9.1 * 3.0)}, - {txt _ (9.1 / 3.0)}, {txt _ (9.1 % 3.0)}<br/> + {[ -1 ]}, {[ 1 + 1 ]}, {[ 9 - 3 ]}, {[ 9 * 3 ]}, {[ 9 / 3 ]}, {[ 9 % 3 ]}<br/> + {[ -1.1 ]}, {[ 1.0 + 1.1 ]}, {[ 9.1 - 3.0 ]}, {[ 9.1 * 3.0 ]}, + {[ 9.1 / 3.0 ]}, {[ 9.1 % 3.0 ]}<br/> </body></xml> diff --git a/tests/ord.ur b/tests/ord.ur new file mode 100644 index 00000000..4bca682b --- /dev/null +++ b/tests/ord.ur @@ -0,0 +1,3 @@ +fun main () : transaction page = return <xml><body> + {[ 1 < 1 ]}, {[ 1 < 2 ]}, {[ 1 <= 1 ]}, {[ 2 <= 1 ]} +</body></xml> diff --git a/tests/ord.urp b/tests/ord.urp new file mode 100644 index 00000000..b44219b4 --- /dev/null +++ b/tests/ord.urp @@ -0,0 +1,3 @@ +debug + +ord |