Skip to content

Commit f67a9a4

Browse files
committed
Truncate some floats to ints in tests
1 parent 00e1b26 commit f67a9a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ZxcvbnTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ public function sanityCheckDataProvider()
7171
return [
7272
['password', 0, ['dictionary',], 'less than a second', 3],
7373
['65432', 0, ['sequence',], 'less than a second', 101],
74-
['sdfgsdfg', 1, ['repeat',], 'less than a second', 2595.0000000276],
74+
['sdfgsdfg', 1, ['repeat',], 'less than a second', 2595],
7575
['fortitude', 1, ['dictionary',], '1 second', 11308],
7676
['dfjkym', 1, ['bruteforce',], '2 minutes', 1000001],
7777
['fortitude22', 2, ['dictionary', 'repeat',], '2 minutes', 1140700],
7878
['absoluteadnap', 2, ['dictionary', 'dictionary',], '25 minutes', 15187504],
7979
['knifeandspoon', 3, ['dictionary', 'dictionary', 'dictionary'], '1 day', 1108057600],
8080
['h1dden_26191', 3, ['dictionary', 'bruteforce', 'date'], '3 days', 2642940400], // Failed asserting that 2730628000 matches expected 2642940400.
81-
['4rfv1236yhn!', 4, ['spatial', 'sequence', 'bruteforce'], '1 month', 38980000000.414],
81+
['4rfv1236yhn!', 4, ['spatial', 'sequence', 'bruteforce'], '1 month', 38980000000],
8282
['BVidSNqe3oXVyE1996', 4, ['bruteforce', 'regex',], 'centuries', 10000000000010000],
8383
];
8484
}

0 commit comments

Comments
 (0)