mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Add assert for multi-segment prefix
This commit is contained in:
parent
b7a59748c4
commit
8b55c4981d
@ -11,6 +11,7 @@ describe "TextMateScopeSelector", ->
|
||||
it "matches prefixes", ->
|
||||
expect(new TextMateScopeSelector('a').matches(['a'])).toBeTruthy()
|
||||
expect(new TextMateScopeSelector('a').matches(['a.b'])).toBeTruthy()
|
||||
expect(new TextMateScopeSelector('a.b').matches(['a.b.c'])).toBeTruthy()
|
||||
expect(new TextMateScopeSelector('a').matches(['abc'])).toBeFalsy()
|
||||
|
||||
it "matches disjunction", ->
|
||||
|
Loading…
Reference in New Issue
Block a user