From 4a0a076661d26473cac71b9a17e6a759e9b1c643 Mon Sep 17 00:00:00 2001 From: "Mathias R. Jessen" Date: Sat, 16 Nov 2019 01:37:50 +0100 Subject: [PATCH] Add `-in` and `-notin` tests (#190) --- examples/TheBigTestFile.ps1 | 2 ++ spec/testfiles/syntax_test_TheBigTestFile.ps1 | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/examples/TheBigTestFile.ps1 b/examples/TheBigTestFile.ps1 index c2d9daf..39b0d89 100644 --- a/examples/TheBigTestFile.ps1 +++ b/examples/TheBigTestFile.ps1 @@ -390,6 +390,8 @@ if (10 -cgt 100) { } $a -is $b $b -contains $c $x -notcontains $c +$c -in $b +$c -notin $x $a -match $b $a -notmatch $b $x -like $c diff --git a/spec/testfiles/syntax_test_TheBigTestFile.ps1 b/spec/testfiles/syntax_test_TheBigTestFile.ps1 index 73bb888..89d416a 100644 --- a/spec/testfiles/syntax_test_TheBigTestFile.ps1 +++ b/spec/testfiles/syntax_test_TheBigTestFile.ps1 @@ -1006,6 +1006,10 @@ $b -contains $c # ^ keyword.operator.comparison.powershell $x -notcontains $c # ^ keyword.operator.comparison.powershell +$c -in $b +# ^ keyword.operator.comparison.powershell +$c -notin $x +# ^ keyword.operator.comparison.powershell $a -match $b # ^ keyword.operator.comparison.powershell $a -notmatch $b