@@ -10,23 +10,23 @@ spawn_basic
1010test "PRINT SIN(0)\n" "0\n"
1111test "PRINT SIN(1)\n" "0.841470985\n"
1212
13- test "PRINT SIN()\n" "ERR: SYNTAX \n"
13+ test "PRINT SIN()\n" "ERR: ARITY? \n"
1414test "PRINT SIN(1, 2)\n" "ERR: ARITY?\n"
1515
1616# COS
1717
1818test "PRINT COS(0)\n" "1\n"
1919test "PRINT COS(1)\n" "0.540301189\n"
2020
21- test "PRINT COS()\n" "ERR: SYNTAX \n"
21+ test "PRINT COS()\n" "ERR: ARITY? \n"
2222test "PRINT COS(1, 2)\n" "ERR: ARITY?\n"
2323
2424# TAN
2525
2626test "PRINT TAN(0)\n" "0\n"
2727test "PRINT TAN(1)\n" "1.55741094\n"
2828
29- test "PRINT TAN()\n" "ERR: SYNTAX \n"
29+ test "PRINT TAN()\n" "ERR: ARITY? \n"
3030test "PRINT TAN(1, 2)\n" "ERR: ARITY?\n"
3131
3232# ATN
@@ -37,7 +37,7 @@ test "PRINT ATN(0.5)\n" "0.463647609\n"
3737test "PRINT ATN(2)\n" "1.10714739\n"
3838test "PRINT ATN(-1)\n" "-0.785398163\n"
3939
40- test "PRINT ATN()\n" "ERR: SYNTAX \n"
40+ test "PRINT ATN()\n" "ERR: ARITY? \n"
4141test "PRINT ATN(1, 2)\n" "ERR: ARITY?\n"
4242
4343# LOG
@@ -51,15 +51,15 @@ PRINT LOG(-1)
5151ERR: RANGE
5252}
5353
54- test "PRINT LOG()\n" "ERR: SYNTAX \n"
54+ test "PRINT LOG()\n" "ERR: ARITY? \n"
5555test "PRINT LOG(1, 2)\n" "ERR: ARITY?\n"
5656
5757# EXP
5858
5959test "PRINT EXP(0)\n" "1\n"
6060test "PRINT EXP(1)\n" "2.71828182\n"
6161
62- test "PRINT EXP()\n" "ERR: SYNTAX \n"
62+ test "PRINT EXP()\n" "ERR: ARITY? \n"
6363test "PRINT EXP(1, 2)\n" "ERR: ARITY?\n"
6464
6565# SQR
@@ -73,5 +73,5 @@ PRINT SQR(-1)
7373ERR: RANGE
7474}
7575
76- test "PRINT SQR()\n" "ERR: SYNTAX \n"
76+ test "PRINT SQR()\n" "ERR: ARITY? \n"
7777test "PRINT SQR(1, 2)\n" "ERR: ARITY?\n"
0 commit comments