Skip to content

Commit

Permalink
Fix tests since SpatialMatch support AZERTY keyboard layout
Browse files Browse the repository at this point in the history
  • Loading branch information
brenard committed Jan 26, 2023
1 parent 01cf4b7 commit 9eab908
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/Matchers/SpatialTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ public function testShiftedCountForMultipleMatches(): void
"shifted count is correct for two matches in a row",
SpatialMatch::match($password),
'spatial',
['!QAZ', '1qaz'],
[[0, 3], [4, 7]],
['!QAZ', 'QAZ', '1qaz', 'qaz'],
[[0, 3], [1, 3], [4, 7], [5, 7]],
[
'graph' => ['qwerty', 'qwerty'],
'turns' => [1, 1],
'shiftedCount' => [4, 0],
'graph' => ['qwerty', 'azerty', 'qwerty', 'azerty'],
'turns' => [1, 2, 1, 2],
'shiftedCount' => [4, 2, 0, 0],
]
);
}
Expand Down
4 changes: 2 additions & 2 deletions test/ZxcvbnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ public function sanityCheckDataProvider()
return [
['password', 0, ['dictionary',], 'less than a second', 3],
['65432', 0, ['sequence',], 'less than a second', 101],
['sdfgsdfg', 1, ['repeat',], 'less than a second', 2595],
['sdfgsdfg', 0, ['repeat',], 'less than a second', 459.00000000299997],
['fortitude', 1, ['dictionary',], '1 second', 11308],
['dfjkym', 1, ['bruteforce',], '2 minutes', 1000001],
['fortitude22', 2, ['dictionary', 'repeat',], '2 minutes', 1140700],
['absoluteadnap', 2, ['dictionary', 'dictionary',], '25 minutes', 15187504],
['knifeandspoon', 3, ['dictionary', 'dictionary', 'dictionary'], '1 day', 1108057600],
['h1dden_26191', 3, ['dictionary', 'bruteforce', 'date'], '3 days', 2730628000],
['4rfv1236yhn!', 4, ['spatial', 'sequence', 'bruteforce'], '1 month', 38980000000],
['4rfv1236yhn!', 3, ['spatial', 'sequence', 'bruteforce'], '8 days', 6940000000.045],
['BVidSNqe3oXVyE1996', 4, ['bruteforce', 'regex',], 'centuries', 10000000000010000],
];
}
Expand Down

0 comments on commit 9eab908

Please sign in to comment.