summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test.c b/test.c
index cf76591..0d78c99 100644
--- a/test.c
+++ b/test.c
@@ -26,10 +26,9 @@ int main(void) {
test(quotrem.rem, 0x4u,==)
}
{
- /* 3^(-3) */
- zap_i02 const tmp = zap_exp04(0x3,0x3u);
- zap_i02 const val = zap_divmod02(0x10000u,tmp).quot;
- test(val,0x97Bu,==)
+ test(zap_divmod02(0x10000u,zap_exp8(0x3u,0x3u)).quot,0x97Bu,==) /* 3^(-3) */
+ test(zap_exp8(0x0u,0x0u),0x1u,==)
+ test(zap_exp8(0x0u,0x1u),0x0u,==)
}
/* mem */
{