Skip to content

Commit

Permalink
Update external test cases (#825)
Browse files Browse the repository at this point in the history
Co-authored-by: JohnnyMorganz <[email protected]>
  • Loading branch information
github-actions[bot] and JohnnyMorganz authored Nov 19, 2023
1 parent 712aa76 commit 5de9a1d
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/inputs-luau-full_moon/floor_division.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local x = 1 // 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local _ = `{ {}}`
local _ = `{--[[]]{}}`
local _ = `\{{true}`
local _ = `{ {true}}`
-- TODO: https://github.com/Roblox/luau/issues/1019
-- local _ = `{ {hello}}`
local _ = `\{{hello}}`
2 changes: 2 additions & 0 deletions tests/inputs-luau-full_moon/z-escape-string.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print("testing \z
twelve")
7 changes: 7 additions & 0 deletions tests/snapshots/tests__luau_full_moon@floor_division.lua.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/tests.rs
expression: format(&contents)
input_file: tests/inputs-luau-full_moon/floor_division.lua
---
local x = 1 // 2

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
source: tests/tests.rs
expression: format(&contents)
input_file: tests/inputs-luau-full_moon/string_interpolation_double_brace.lua
---
local _ = `{ {}}`
local _ = `{--[[]] {}}`
local _ = `\{{true}`
local _ = `{ { true }}`
-- TODO: https://github.com/Roblox/luau/issues/1019
-- local _ = `{ {hello}}`
local _ = `\{{hello}}`

8 changes: 8 additions & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: tests/tests.rs
expression: format(&contents)
input_file: tests/inputs-luau-full_moon/z-escape-string.lua
---
print("testing \z
twelve")

0 comments on commit 5de9a1d

Please sign in to comment.