From 675e07a5cfb7909e498d571b8fd338fd3a6ce194 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Wed, 16 Feb 2022 21:33:37 -0500 Subject: [PATCH] test: add same line comment cases --- front/deploy | 1 + tests/cases/comment/in | 13 +++++++++++++ tests/cases/comment/out | 20 ++++++++++++++++++++ 3 files changed, 34 insertions(+) diff --git a/front/deploy b/front/deploy index f2b5318..78f5274 100755 --- a/front/deploy +++ b/front/deploy @@ -3,6 +3,7 @@ set -euo pipefail wasm-pack build --target web +rm -rf node_modules/ yarn install yarn build diff --git a/tests/cases/comment/in b/tests/cases/comment/in index 9e3e59f..71932a4 100644 --- a/tests/cases/comment/in +++ b/tests/cases/comment/in @@ -41,4 +41,17 @@ /* test * test */ + + [ + a # comment + ] + + { + a = 123; # comment + } + + ({ + a, # comment + b ? 2,# comment + }: _) ] diff --git a/tests/cases/comment/out b/tests/cases/comment/out index dbeb4e0..ab3a6ca 100644 --- a/tests/cases/comment/out +++ b/tests/cases/comment/out @@ -48,4 +48,24 @@ test * test */ + + [ + a + # comment + ] + + { + a = 123; + # comment + } + + ( + { + a, + # comment + b ? 2, + # comment + }: + _ + ) ]