Skip to content

Commit

Permalink
Add 1 more test
Browse files Browse the repository at this point in the history
  • Loading branch information
333fred committed Jun 14, 2024
1 parent d63e266 commit ae5d30d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/attribute.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,25 @@ describe("Attributes", () => {
Token.Punctuation.CloseBracket]);
});

it("Generic attributes should be highlighted multiple type parameters with regular arguments", async () => {

const input = `[Foo<T1, T2>(true)]`;
const tokens = await tokenize(input);

tokens.should.deep.equal([
Token.Punctuation.OpenBracket,
Token.Type("Foo"),
Token.Punctuation.TypeParameter.Begin,
Token.Type("T1"),
Token.Punctuation.Comma,
Token.Type("T2"),
Token.Punctuation.TypeParameter.End,
Token.Punctuation.OpenParen,
Token.Literal.Boolean.True,
Token.Punctuation.CloseParen,
Token.Punctuation.CloseBracket]);
});

it("Generic attributes should be highlighted empty", async () => {

const input = `[Foo<>]`;
Expand Down

0 comments on commit ae5d30d

Please sign in to comment.