Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5975450
SortTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
614 B
Referenced Files
None
Subscribers
None
SortTest.php
View Options
<?php
use
Eris\Generators
;
class
SortTest
extends
\PHPUnit\Framework\TestCase
{
use
Eris\TestTrait
;
public
function
testArraySorting
()
{
$this
->
forAll
(
Generators
::
seq
(
Generators
::
nat
())
)
->
then
(
function
(
$array
)
{
sort
(
$array
);
for
(
$i
=
0
;
$i
<
count
(
$array
)
-
1
;
$i
++)
{
$this
->
assertTrue
(
$array
[
$i
]
<=
$array
[
$i
+
1
],
"Array is not sorted: "
.
var_export
(
$array
,
true
)
);
}
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 18:15 (9 h, 6 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/5b/ce5fd4323afd35e96c41565c3110
Default Alt Text
SortTest.php (614 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment