Skip to content

Commit

Permalink
Fixes #69
Browse files Browse the repository at this point in the history
  • Loading branch information
dave committed Dec 9, 2022
1 parent bc71a76 commit 5fa8d6e
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 212 deletions.
20 changes: 20 additions & 0 deletions decorator/decorator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ func TestDecorator(t *testing.T) {
code string
expect string
}{
{
name: "package comment bug 3",
code: `/*
1
*/
package a`,
expect: `File [Start "/*\n1\n*/" "\n"]`,
},
{
name: "package comment bug 2",
code: `// 1
package a`,
expect: `File [Start "// 1"]`,
},
{
name: "package comment bug 1",
code: `/* 1 */
package a`,
expect: `File [Start "/* 1 */" "\n"]`,
},
{
name: "index list expr",
code: `package a
Expand Down
Loading

0 comments on commit 5fa8d6e

Please sign in to comment.