Skip to content

Commit d58df20

Browse files
Update external test cases (#985)
Co-authored-by: JohnnyMorganz <[email protected]>
1 parent 45f6d92 commit d58df20

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@example
2+
function foo()
3+
end
4+
5+
@native
6+
local function bar()
7+
end
8+
9+
local foo = @example function() end
10+
11+
@example
12+
function foo:bar()
13+
end
14+
15+
@attribute1 @attribute2 @attribute3 @attribute4 @attribute5
16+
local function many_attributes()
17+
end

tests/snapshots/[email protected]

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
source: tests/tests.rs
3+
expression: "format(&contents, LuaVersion::Luau)"
4+
input_file: tests/inputs-luau-full_moon/attributes.lua
5+
---
6+
@example
7+
function foo() end
8+
9+
@native
10+
local function bar() end
11+
12+
local foo = @example function() end
13+
14+
@example
15+
function foo:bar() end
16+
17+
@attribute1
18+
@attribute2
19+
@attribute3
20+
@attribute4
21+
@attribute5
22+
local function many_attributes() end

0 commit comments

Comments
 (0)