Skip to content

Commit

Permalink
Add tests for Issue #34
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Jan 11, 2017
1 parent b3dc36e commit d42f45e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/grammar-perl6fe-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ describe "Perl 6 FE grammar", ->
expect(grammar.firstLineRegex.scanner.findNextMatchSync(lne)).not.toBeNull()

## Bugs
it "Putting spaces around / division operator highlights properly. Issue № 34", ->
{tokens} = grammar.tokenizeLine 'isa-ok(1 / 4, Rat, "/ makes a Rat");'
expect(tokens[4]).toEqual value: '/',
scopes: [ 'source.perl6fe', 'keyword.operator.generic.perl6fe' ]

it "Two variables in a row don't allow hyphens in variable name. Issue № 40", ->
{tokens} = grammar.tokenizeLine '$reverse-solidus$reverse-solidus'
expect(tokens[3]).toEqual value: 'reverse-solidus',
Expand Down

0 comments on commit d42f45e

Please sign in to comment.