Skip to content

Commit 6663c92

Browse files
committed
Update tests.
1 parent a51abbb commit 6663c92

File tree

2 files changed

+17
-33
lines changed

2 files changed

+17
-33
lines changed
Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,5 @@
11
class animal
2-
3-
name {get set}
4-
52
constructor(name)
63
self.name = name
74
end
8-
9-
function testName(name)
10-
self.name = name
11-
if (#self.name > 100) then
12-
print("that's a long name!")
13-
end
14-
end
15-
16-
end
17-
18-
class cat extends animal
19-
20-
name {get set}
21-
22-
constructor(name)
23-
self = new animal("b")
24-
end
25-
26-
function testName(name)
27-
self.name = name
28-
if (#self.name > 100) then
29-
print("that's a long name!")
30-
end
31-
end
32-
335
end
34-
35-
local function b() end
36-
37-
local b = new cat("Thomas")
38-
print(b:getName())
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--[[
2+
Written by nosharp (https://nosharp.cc),
3+
tom.bat (tomdotbat.dev),
4+
sammy milton (smilton.dev)
5+
]]--
6+
class animal
7+
constructor(name)
8+
self.name = name
9+
end
10+
end
11+
self.name = name
12+
self.name = name
13+
class animal
14+
constructor(name)
15+
self.name = name
16+
end
17+
end

0 commit comments

Comments
 (0)