mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Fix the issue of CR for Get-Random
This commit is contained in:
1 parent
5d91a8164f
commit
01af13ce37
1 file changed
+7
-3
@@ -241,9 +241,13 @@ Describe "Get-Random DRT Unit Tests" -Tags DRT{
|
||||
}
|
||||
|
||||
It "Tests for setting the seed" {
|
||||
$result1 = get-random -SetSeed 123; get-random;
|
||||
$result2 = get-random -SetSeed 123; get-random;
|
||||
$result1 | Should Be $result2
|
||||
$result1 = (get-random -SetSeed 123), (get-random)
|
||||
$result2 = (get-random -SetSeed 123), (get-random)
|
||||
$result1.Length | Should Be $result2.Length
|
||||
for($i = 0;$i -lt $result1.Length;$i++)
|
||||
{
|
||||
$result1[$i] | Should Be $result2[$i]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user