pester tests pass
This commit is contained in:
pblivingston 2025-11-25 21:25:13 -05:00
parent e0b01288ff
commit 80869d4306
2 changed files with 28 additions and 0 deletions

View File

@ -110,6 +110,23 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
$vmr.command.lock = $value $vmr.command.lock = $value
} }
} }
Context 'Patch' {
It 'Should set and get Patch.insert[$insert]' -Skip:$ifBasic {
$vmr.patch.insert[$insert].set($value)
$vmr.patch.insert[$insert].get() | Should -Be $value
}
It 'Should set and get Patch.postfadercomposite' -Skip:$ifBasic {
$vmr.patch.postfadercomposite = $value
$vmr.patch.postfadercomposite | Should -Be $value
}
It 'Should set and get Patch.postfxinsert' -Skip:$ifBasic {
$vmr.patch.postfxinsert = $value
$vmr.patch.postfxinsert | Should -Be $value
}
}
} }
Describe 'Float Tests' { Describe 'Float Tests' {
@ -241,6 +258,15 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
} }
} }
} }
Context 'Patch' {
It 'Should set and get Patch.composite[$composite]' -Skip:$ifBasic -ForEach @(
@{ Value = 22 }, @{ Value = 6 }
) {
$vmr.patch.composite[$composite].set($value)
$vmr.patch.composite[$composite].get() | Should -Be $value
}
}
} }
Describe 'String Tests' { Describe 'String Tests' {

View File

@ -16,6 +16,8 @@ function main() {
$virt_out = $vmr.kind.p_out + $vmr.kind.v_out - 1 $virt_out = $vmr.kind.p_out + $vmr.kind.v_out - 1
$vban_in = $vmr.kind.vban_in - 1 $vban_in = $vmr.kind.vban_in - 1
$vban_out = $vmr.kind.vban_out - 1 $vban_out = $vmr.kind.vban_out - 1
$insert = $vmr.kind.insert - 1
$composite = $vmr.kind.composite - 1
# skip conditions by kind # skip conditions by kind
$ifBasic = $vmr.kind.name -eq 'basic' $ifBasic = $vmr.kind.name -eq 'basic'