Skip to content

Commit

Permalink
✅ Add specs for !=
Browse files Browse the repository at this point in the history
  • Loading branch information
hediyi committed Jul 1, 2016
1 parent e434194 commit afc440a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/ruby-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@ describe "Ruby grammar", ->
{tokens} = grammar.tokenizeLine('!foo')
expect(tokens[0]).toEqual value: '!', scopes: ['source.ruby', 'keyword.operator.logical.ruby']

it "tokenizes != as comparison operator", ->
{tokens} = grammar.tokenizeLine('foo != bar')
expect(tokens[1]).toEqual value: '!=', scopes: ['source.ruby', 'keyword.operator.comparison.ruby']

it "tokenizes yard documentation comments", ->
{tokens} = grammar.tokenizeLine('# @private')
expect(tokens[0]).toEqual value: '#', scopes: ['source.ruby', 'comment.line.number-sign.ruby', 'punctuation.definition.comment.ruby']
Expand Down

0 comments on commit afc440a

Please sign in to comment.