aboutsummaryrefslogtreecommitdiff
path: root/testsuite/bc_misc1.bc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-12 21:41:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-12 21:41:40 +0100
commit9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49 (patch)
tree9b1a85084b1e046b0a5b5eb06375334ef1eb2f56 /testsuite/bc_misc1.bc
parentd6ad3666dc51f475a6e76b07f2c59d039f69f2d4 (diff)
downloadbusybox-w32-9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49.tar.gz
busybox-w32-9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49.tar.bz2
busybox-w32-9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49.zip
testsuite: add bc and dc tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/bc_misc1.bc')
-rw-r--r--testsuite/bc_misc1.bc76
1 files changed, 76 insertions, 0 deletions
diff --git a/testsuite/bc_misc1.bc b/testsuite/bc_misc1.bc
new file mode 100644
index 000000000..7e9d96604
--- /dev/null
+++ b/testsuite/bc_misc1.bc
@@ -0,0 +1,76 @@
1define x(x) {
2 return(x)
3}
4define y() {
5 return;
6}
7define z() {
8 return ();
9}
10scale = 0
11x=2
12x[0]=3
13x
14x[0]
15scale
16ibase
17obase
18x ( 7 )
19x + x( 8 )
20x - x[0]
21321 * x
222 ^ x[0]
23x++
24--x
25x += 9
26x
27length(2381)
28sqrt(9)
29scale(238.1)
30x=2
31x[0]=3
32(x)
33(x[0])
34(scale)
35(ibase)
36(obase)
37(x ( 7 ))
38(x + x( 8 ))
39(x - x[0])
40(321 * x)
41(2 ^ x[0])
42(x++)
43(--x)
44(x += 9)
45(length(2381))
46(sqrt(9))
47(scale(238.1))
48(scale = 0)
49(x = 10)
50(x += 100)
51(x -= 10)
52(x *= 10)
53(x /= 100)
54(x ^= 10)
55(x = sqrt(x))
56(x[1 - 1])
57x[(1 - 1)]
582 + \
593
60++ibase
61--ibase
62++obase
63--obase
64++last
65--last
66last
67last = 100
68last
69. = 150
70.
71++scale
72--scale
73y()
74z()
752 + /*
76*/3