Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431078
SampleTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
478 B
Referenced Files
None
Subscribers
None
SampleTest.php
View Options
<?php
namespace
Eris
;
class
SampleTest
extends
\PHPUnit\Framework\TestCase
{
use
TestTrait
;
public
function
testWithGeneratorSize
()
{
$times
=
100
;
$generatorSize
=
100
;
$generator
=
Generators
::
suchThat
(
function
(
$n
)
{
return
$n
>
10
;
},
Generators
::
nat
());
$sample
=
$this
->
sample
(
$generator
,
$times
,
$generatorSize
);
$this
->
assertNotEmpty
(
count
(
$sample
->
collected
()));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 20:04 (3 h, 4 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0f/ba/32cab32c0e17760e9f51c53c1a3d
Default Alt Text
SampleTest.php (478 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment