Skip to content

Commit 9d456d2

Browse files
committed
Modify the test cases .
1 parent bf24b63 commit 9d456d2

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/001.phpt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ $hashids = new Hashids();
1010
$hash = $hashids->encode(1, 2, 3, 4, 5); // ADf9h9i0sQ
1111
$numbers = $hashids->decode($hash); // [1, 2, 3, 4, 5]
1212

13-
echo $hash;
13+
echo $hash . "\n";
1414
print_r($numbers);
1515

1616
//or would you prefer to use a static method call
1717
$hash = Hashids::encode(1, 2, 3, 4, 5); // ADf9h9i0sQ
1818
$numbers = Hashids::decode($hash); // [1, 2, 3, 4, 5]
1919

20-
echo $hash;
20+
echo $hash . "\n";
2121
print_r($numbers);
2222

2323
//decode
@@ -28,20 +28,22 @@ print_r($numbers);
2828
$hash = $hashids->encodeHex('FFFFDD'); // rYKPAK
2929
$hex = $hashids->decodeHex('rYKPAK'); // FFFFDD
3030

31-
echo $hash;
31+
echo $hash . "\n";
3232
echo $hex;
3333

3434
?>
3535
--EXPECT--
36-
ADf9h9i0sQArray
36+
ADf9h9i0sQ
37+
Array
3738
(
3839
[0] => 1
3940
[1] => 2
4041
[2] => 3
4142
[3] => 4
4243
[4] => 5
4344
)
44-
ADf9h9i0sQArray
45+
ADf9h9i0sQ
46+
Array
4547
(
4648
[0] => 1
4749
[1] => 2
@@ -57,4 +59,5 @@ Array
5759
[3] => 4
5860
[4] => 5
5961
)
60-
rYKPAKFFFFDD
62+
rYKPAK
63+
FFFFDD

0 commit comments

Comments
 (0)