-
Notifications
You must be signed in to change notification settings - Fork 0
/
firsttest.txt
64 lines (54 loc) · 984 Bytes
/
firsttest.txt
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
55
56
57
58
59
60
61
62
63
64
$ iix lua -v
Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio
$ iix lua luac.out
Starting test
Type tests
Number type == number
String type == string
Boolean type == boolean
Nil type == nil
Arithmetic tests
1.0 + 2.0 == 3.0
1 + 2 == 3
a + b == -3 a=-1,b=-2
Conditional tests
Pass 200 > 100
Loop tests
Basic for loop... passed
Basic for loop with step... passed
Basic for loop with neg step... failed
1 1910
2 1920
3 1930
4 1940
5 1950
6 1960
7 1970
8 1980
9 1990
String tests
WalterWhite == WalterWhite
The 3 Musketeers == The 3 Musketeers
Function tests
Say hello there 5 times...
Hello there
Hello there
Hello there
Hello there
Hello there
Function with a single return value
81 == 81
Print all parameters of a function
String 42 true
1 String
2 42
3 true
Function with multiple return values
Jim and Jack
The first is Jim
The last is John
Logic tests
false
true
true
Ending test