Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7400559
VectorTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
732 B
Referenced Files
None
Subscribers
None
VectorTest.php
View Options
<?php
use
Eris\Generators
;
class
VectorTest
extends
\PHPUnit\Framework\TestCase
{
use
Eris\TestTrait
;
public
function
testConcatenationMaintainsLength
()
{
$this
->
forAll
(
Generators
::
vector
(
10
,
Generators
::
nat
()),
Generators
::
vector
(
10
,
Generators
::
nat
())
)
->
then
(
function
(
$first
,
$second
)
{
$concatenated
=
array_merge
(
$first
,
$second
);
$this
->
assertEquals
(
count
(
$concatenated
),
count
(
$first
)
+
count
(
$second
),
var_export
(
$first
,
true
)
.
" and "
.
var_export
(
$second
,
true
)
.
" do not maintain their length when concatenated."
);
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 16:46 (10 h, 49 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c2/b2/ad38d5872462d79d4a22cc07c841
Default Alt Text
VectorTest.php (732 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment