Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Nov 24, 2023
1 parent fcdfb24 commit 5c4a481
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/cursorless-vscode/src/keyboard/grammar/grammar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,25 @@ const testCases: TestCase[] = [
type: "targetRelativeScope",
},
},
{
tokens: [
{ type: "direction", value: "backward" },
{ type: "relative" },
{ type: "simpleScopeTypeType", value: "namedFunction" },
],
expected: {
arg: {
length: null,
offset: {
direction: "backward",
},
scopeType: {
type: "namedFunction",
},
},
type: "targetRelativeScope",
},
},
{
tokens: [
{
Expand Down

0 comments on commit 5c4a481

Please sign in to comment.