we should support negative exponents

This commit is contained in:
Zander Thannhauser 2025-08-18 21:32:07 -05:00
parent 1859434d90
commit c1e24d27d3

View file

@ -129,6 +129,11 @@
"ftime": 1755570334.5242145, "ftime": 1755570334.5242145,
"output": "9 \n" "output": "9 \n"
}, },
"(1 / 2) ** 10": {
"exit": 0,
"ftime": 1755570695.8318465,
"output": "???"
},
"(1 @": { "(1 @": {
"exit": 1, "exit": 1,
"ftime": 1755570366.9972131, "ftime": 1755570366.9972131,
@ -979,6 +984,11 @@
"ftime": 1755486329.9161963, "ftime": 1755486329.9161963,
"output": "error: cannot exponentiate beyond ULONG_MAX\n" "output": "error: cannot exponentiate beyond ULONG_MAX\n"
}, },
"2 ** -10": {
"exit": 0,
"ftime": 1755570705.632582,
"output": "???"
},
"2 ** -100": { "2 ** -100": {
"exit": 0, "exit": 0,
"ftime": 1755485912.92433, "ftime": 1755485912.92433,