aboutsummaryrefslogtreecommitdiff
path: root/tests/bc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bc')
-rw-r--r--tests/bc/errors/23.txtbin0 -> 5141 bytes
-rw-r--r--tests/bc/errors/24.txt9
-rw-r--r--tests/bc/misc2.txt1
-rw-r--r--tests/bc/misc2_results.txt5
-rwxr-xr-xtests/bc/timeconst.sh2
5 files changed, 15 insertions, 2 deletions
diff --git a/tests/bc/errors/23.txt b/tests/bc/errors/23.txt
new file mode 100644
index 000000000000..1a42997385ea
--- /dev/null
+++ b/tests/bc/errors/23.txt
Binary files differ
diff --git a/tests/bc/errors/24.txt b/tests/bc/errors/24.txt
new file mode 100644
index 000000000000..0fbfe2762504
--- /dev/null
+++ b/tests/bc/errors/24.txt
@@ -0,0 +1,9 @@
+perm(10, 2)
+comb(10, 2)
+perm(6, 2)
+comb(6, ++i[])
+}
+
+define m(*x[], *y[]) {
+ r@turn x[0])
+z \ No newline at end of file
diff --git a/tests/bc/misc2.txt b/tests/bc/misc2.txt
index 7cf162435c1b..3b3aa683402c 100644
--- a/tests/bc/misc2.txt
+++ b/tests/bc/misc2.txt
@@ -87,6 +87,7 @@ if(x == 1) {
for (;;) { 123 ; break; }
for (i = 0;; ++i) { i ; if (i == 2) break; else i; }
+for (i = 0;;!++i) { i ; if (i == 2) break; else i; }
for (i = 0;; ++i) { i ; if (i != 2) i else break }
while (i > 0) if (i == 1) break else i--
diff --git a/tests/bc/misc2_results.txt b/tests/bc/misc2_results.txt
index 986a3a2a13e1..93b15e508170 100644
--- a/tests/bc/misc2_results.txt
+++ b/tests/bc/misc2_results.txt
@@ -47,6 +47,11 @@ zx16
1
1
2
+0
+0
+1
+1
+2
2
1
1
diff --git a/tests/bc/timeconst.sh b/tests/bc/timeconst.sh
index 17e765d159ec..32e1e743d9e4 100755
--- a/tests/bc/timeconst.sh
+++ b/tests/bc/timeconst.sh
@@ -2,8 +2,6 @@
#
# Copyright (c) 2018-2020 Gavin D. Howard and contributors.
#
-# All rights reserved.
-#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#