Skip to content

Commit

Permalink
Add some tests that should pass but fail
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Feb 10, 2022
1 parent 7713230 commit 1a88f32
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/syntax.vader
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,19 @@ Execute (command):
AssertEqual 'Delimiter', SyntaxAt(1, 5)
AssertEqual 'Delimiter', SyntaxAt(1, 40)
AssertEqual 'sileOptionSep', SyntaxAt(1, 13)
" AssertEqual 'sileOptionSep', SyntaxAt(1, 32)
AssertEqual 'Delimiter', SyntaxAt(1, 18)
AssertEqual 'sileOptionQuoted', SyntaxOf('string')
AssertEqual 'Delimiter', SyntaxAt(1, 32)
AssertEqual 'sileOption', SyntaxOf('key')
AssertEqual 'sileOptionVal', SyntaxOf('val')
AssertEqual 'sileOptionVal', SyntaxOf('6')
AssertEqual 'sileOptionDef', SyntaxOf('=')

Given sile:
foo \bar[t=true,f=false,p=val] baz

Execute (booleans):
" AssertEqual 'sileBoolean', SyntaxOf('true')
" AssertEqual 'sileBoolean', SyntaxOf('false')
" AssertNotEqual 'sileOptionVal', SyntaxOf('val')

0 comments on commit 1a88f32

Please sign in to comment.