Add assert for multi-segment prefix

This commit is contained in:
Kevin Sawicki 2013-08-06 11:35:37 -07:00
parent b7a59748c4
commit 8b55c4981d

View File

@ -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", ->