@@ -118,18 +118,13 @@ Describe 'tests for function expressions' {
118
118
@ { expression = " [intersection(parameters('thirdObject'), parameters('fourthObject'))]" ; expected = [pscustomobject ]@ { three = ' d' } }
119
119
@ { expression = " [intersection(parameters('firstArray'), parameters('thirdArray'))]" ; expected = @ () }
120
120
@ { expression = " [intersection(parameters('firstObject'), parameters('firstArray'))]" ; isError = $true }
121
- # Test with 3 arrays - should find common elements across all three
122
121
@ { expression = " [intersection(parameters('firstArray'), parameters('secondArray'), parameters('fifthArray'))]" ; expected = @ (' cd' ) }
123
- # Test with 3 objects - should find properties with matching key-value pairs across all three
124
122
@ { expression = " [intersection(parameters('firstObject'), parameters('secondObject'), parameters('sixthObject'))]" ; expected = [pscustomobject ]@ { two = ' b' } }
125
- # Test with nested objects - should match deep equality
126
123
@ { expression = " [intersection(parameters('nestedObject1'), parameters('nestedObject2'))]" ; expected = [pscustomobject ]@ {
127
124
shared = [pscustomobject ]@ { value = 42 ; flag = $true }
128
125
level = 1
129
126
} }
130
- # Test with nested objects - no common nested properties
131
127
@ { expression = " [intersection(parameters('nestedObject1'), parameters('nestedObject3'))]" ; expected = [pscustomobject ]@ { level = 1 } }
132
- # Test with 3 nested objects
133
128
@ { expression = " [intersection(parameters('nestedObject1'), parameters('nestedObject2'), parameters('nestedObject4'))]" ; expected = [pscustomobject ]@ { level = 1 } }
134
129
) {
135
130
param ($expression , $expected , $isError )
0 commit comments