From d595dcb31d0530386dd475112c7a678f17c6f996 Mon Sep 17 00:00:00 2001 From: jantari Date: Wed, 14 Dec 2022 01:23:55 +0100 Subject: [PATCH] fix Test-VersionPattern test for hex equal comparison --- tests/Test-VersionPattern.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Test-VersionPattern.Tests.ps1 b/tests/Test-VersionPattern.Tests.ps1 index 2b37472..a39538d 100644 --- a/tests/Test-VersionPattern.Tests.ps1 +++ b/tests/Test-VersionPattern.Tests.ps1 @@ -43,8 +43,8 @@ Describe 'Test-VersionPattern' { } It 'Hexadecimal comparison - Equal' { - Test-VersionPattern -LenovoString '221b' -SystemString '8731' | Should -Be -1 - Test-VersionPattern -LenovoString '00001337' -SystemString '4919' | Should -Be -1 + Test-VersionPattern -LenovoString '221b' -SystemString '8731' | Should -Be 0 + Test-VersionPattern -LenovoString '1337' -SystemString '4919' | Should -Be -1 Test-VersionPattern -LenovoString '1337' -SystemString '4919' -LenovoStringFormat Hex | Should -Be 0 }