Skip to content

Commit 4a0a076

Browse files
IISResetMeTylerLeonhardt
authored andcommitted
Add -in and -notin tests (#190)
1 parent d10ae29 commit 4a0a076

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/TheBigTestFile.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ if (10 -cgt 100) { }
390390
$a -is $b
391391
$b -contains $c
392392
$x -notcontains $c
393+
$c -in $b
394+
$c -notin $x
393395
$a -match $b
394396
$a -notmatch $b
395397
$x -like $c

spec/testfiles/syntax_test_TheBigTestFile.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,10 @@ $b -contains $c
10061006
# ^ keyword.operator.comparison.powershell
10071007
$x -notcontains $c
10081008
# ^ keyword.operator.comparison.powershell
1009+
$c -in $b
1010+
# ^ keyword.operator.comparison.powershell
1011+
$c -notin $x
1012+
# ^ keyword.operator.comparison.powershell
10091013
$a -match $b
10101014
# ^ keyword.operator.comparison.powershell
10111015
$a -notmatch $b

0 commit comments

Comments
 (0)