mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Fix std.algorithm.partition3 example
This commit is contained in:
parent
67e56e4814
commit
b8bdef9c42
1 changed files with 1 additions and 2 deletions
|
@ -8526,10 +8526,9 @@ unittest
|
|||
{
|
||||
auto a = [ 8, 3, 4, 1, 4, 7, 4 ];
|
||||
auto pieces = partition3(a, 4);
|
||||
assert(a == [ 1, 3, 4, 4, 4, 7, 8 ]);
|
||||
assert(pieces[0] == [ 1, 3 ]);
|
||||
assert(pieces[1] == [ 4, 4, 4 ]);
|
||||
assert(pieces[2] == [ 7, 8 ]);
|
||||
assert(pieces[2] == [ 8, 7 ]);
|
||||
}
|
||||
|
||||
unittest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue