Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7415901
ChooseTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
657 B
Referenced Files
None
Subscribers
None
ChooseTest.php
View Options
<?php
use
Eris\Generators
;
use
Eris\TestTrait
;
class
ChooseTest
extends
\PHPUnit\Framework\TestCase
{
use
TestTrait
;
public
function
testSumOfTwoIntegersFromBoundedRangesIsCommutative
()
{
$this
->
forAll
(
Generators
::
choose
(-
1000
,
430
),
Generators
::
choose
(
230
,
-
30000
)
)
->
then
(
function
(
$first
,
$second
)
{
$x
=
$first
+
$second
;
$y
=
$second
+
$first
;
$this
->
assertEquals
(
$x
,
$y
,
"Sum between {$first} and {$second} should be commutative"
);
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 02:25 (1 d, 13 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6d/07/2831ed66fb94ef69b29cc6c0f447
Default Alt Text
ChooseTest.php (657 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment