-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.qsh
executable file
·54 lines (54 loc) · 886 Bytes
/
test.qsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/local/bin/qbsh
PRINT Starting General Tests
PRINT =======
PRINT
LPRINT Date:
DATE
LPRINT Time:
TIME
PRINT
PRINT * Test Environment
LPRINT Operating System:
OS
LPRINT DEVICES:
DEVICES
LPRINT Hello,
WHO AM I
PRINT
PRINT * Changing to home
LPRINT Your home:
ENV HOME
PRINT What's in your home:
DIR
PRINT What's really in your home:
XDIR
CHDIR
PRINT
PRINT * Writing a test directory
MAKEDIR ~/qb64-test
PRINT * Renaming a test directory
RENAME qb64-test ~/qb64-test2
RMDIR ~/qb64-test2
PRINT * Testing Calculator
LPRINT 5 - 1 =
CALC 5 - 1
LPRINT 5 + 1.0 =
CALC 5 + 1.0
LPRINT 5 x 3.234 =
CALC 5 x 3.234
LPRINT 5.723 / 9.123 =
CALC 5.723 / 9.123
LPRINT 6 % 4 =
CALC 6 % 4
LPRINT 6 ^ 2 =
CALC 6 ^ 2
LPRINT 6 r =
CALC 6 r
PRINT Can we divide by zero?
CALC 1 / 0
PRINT Give me two random numbers:
RAND
RAND 500
PRINT
PRINT * Will this test pass?
8BALL Will this test pass?