mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 22:53:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
56
spec/tests/mcfunction/difficult_1.txt
Normal file
56
spec/tests/mcfunction/difficult_1.txt
Normal file
@ -0,0 +1,56 @@
|
||||
---input---
|
||||
# execute as @e[nbt={ Item: {id: "minecraft:diamond", Count: 64 } }] run
|
||||
# setblock ~ ~ ~ minecraft:dispenser[facing=up]{Items: [{id: "minecraft:diamond", Count: 1}]}
|
||||
# tellraw @a [{"text": "hello", "color": "blue"}, {"text": "world", "color": "blue"}]
|
||||
|
||||
execute as @a[advancements={minecraft:story/form_obsidian={foo=true, bar=false},minecraft:story/follow_ender_eye={foo=false, bar=true}}] run
|
||||
|
||||
---tokens---
|
||||
'# execute as @e[nbt={ Item: {id: "minecraft:diamond", Count: 64 } }] run' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'# setblock ~ ~ ~ minecraft:dispenser[facing=up]{Items: [{id: "minecraft:diamond", Count: 1}]}' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'# tellraw @a [{"text": "hello", "color": "blue"}, {"text": "world", "color": "blue"}]' Comment.Single
|
||||
'\n\n' Text.Whitespace
|
||||
|
||||
'execute' Name.Builtin
|
||||
' ' Text.Whitespace
|
||||
'as' Keyword.Constant
|
||||
' ' Text.Whitespace
|
||||
'@a' Name.Variable
|
||||
'[' Punctuation
|
||||
'advancements' Name.Attribute
|
||||
'=' Punctuation
|
||||
'{' Punctuation
|
||||
'minecraft:story/form_obsidian' Name.Attribute
|
||||
'=' Punctuation
|
||||
'{' Punctuation
|
||||
'foo' Name.Attribute
|
||||
'=' Punctuation
|
||||
'true' Name.Tag
|
||||
',' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'bar' Name.Attribute
|
||||
'=' Punctuation
|
||||
'false' Name.Tag
|
||||
'}' Punctuation
|
||||
',' Punctuation
|
||||
'minecraft:story/follow_ender_eye' Name.Attribute
|
||||
'=' Punctuation
|
||||
'{' Punctuation
|
||||
'foo' Name.Attribute
|
||||
'=' Punctuation
|
||||
'false' Name.Tag
|
||||
',' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'bar' Name.Attribute
|
||||
'=' Punctuation
|
||||
'true' Name.Tag
|
||||
'}' Punctuation
|
||||
'}' Punctuation
|
||||
']' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'run' Keyword.Constant
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user