2 // Copyright 2004-present Facebook. All Rights Reserved.
5 var_dump(shuffle(inout
$a));
11 function main_shuffle() {
15 test(varray
[1, 2, 3, 4, 5]);
16 test(darray
[1 => 'a', 2 => 'b', 3 => 'c']);
19 test(vec
[1, 2, 3, 4, 5]);
20 test(vec
['a', 'b', 'c']);
23 test(dict
[1 => 'a', 2 => 'b', 3 => 'c']);
24 test(dict
['a' => 100, 'b' => 200, 'c' => 300]);
27 test(keyset
[1, 2, 3, 4, 5]);
28 test(keyset
['a', 'b', 'c']);
36 test(fopen(__FILE__
, 'r'));
38 test(Vector
{1, 2, 3, 4});