mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed some indenting issues, added indenting test
This commit is contained in:
parent
df4573dca1
commit
e5de09488e
7 changed files with 213 additions and 14 deletions
46
IDE/Tests/IndentTest/scripts/Indent01.txt
Normal file
46
IDE/Tests/IndentTest/scripts/Indent01.txt
Normal file
|
@ -0,0 +1,46 @@
|
|||
ShowFile("src/Indent01.bf")
|
||||
|
||||
GotoText("//Test01")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 17)
|
||||
|
||||
GotoText("//Test02")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 21)
|
||||
|
||||
GotoText("//Test03")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 21)
|
||||
|
||||
GotoText("//Test04")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 25)
|
||||
|
||||
GotoText("//Test05")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 25)
|
||||
|
||||
GotoText("//Test06")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 21)
|
||||
|
||||
GotoText("//Test07")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 25)
|
||||
|
||||
GotoText("//Test08")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 21)
|
||||
|
||||
GotoText("//Test09")
|
||||
AdjustCursor(0, -1)
|
||||
CursorToLineEnd()
|
||||
AssertIsAtColumn("Indent01.bf", 17)
|
Loading…
Add table
Add a link
Reference in a new issue