mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
Disable unittest that eats too much memory.
This commit is contained in:
parent
206c3b4cc7
commit
ef259db8d2
1 changed files with 11 additions and 2 deletions
|
@ -11489,15 +11489,24 @@ unittest
|
||||||
{
|
{
|
||||||
auto N = sequence!"n"(0);
|
auto N = sequence!"n"(0);
|
||||||
auto N3 = cartesianProduct(N, N, N);
|
auto N3 = cartesianProduct(N, N, N);
|
||||||
auto N4 = cartesianProduct(N, N, N, N);
|
|
||||||
|
|
||||||
// Check that tuples are properly denested
|
// Check that tuples are properly denested
|
||||||
assert(is(ElementType!(typeof(N3)) == Tuple!(size_t,size_t,size_t)));
|
assert(is(ElementType!(typeof(N3)) == Tuple!(size_t,size_t,size_t)));
|
||||||
assert(is(ElementType!(typeof(N4)) == Tuple!(size_t,size_t,size_t,size_t)));
|
|
||||||
|
|
||||||
assert(canFind(N3, tuple(0, 27, 7)));
|
assert(canFind(N3, tuple(0, 27, 7)));
|
||||||
assert(canFind(N3, tuple(50, 23, 71)));
|
assert(canFind(N3, tuple(50, 23, 71)));
|
||||||
assert(canFind(N3, tuple(9, 3, 0)));
|
assert(canFind(N3, tuple(9, 3, 0)));
|
||||||
|
}
|
||||||
|
|
||||||
|
version(none)
|
||||||
|
// This unittest causes `make -f posix.mak unittest` to run out of memory. Why?
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
auto N = sequence!"n"(0);
|
||||||
|
auto N4 = cartesianProduct(N, N, N, N);
|
||||||
|
|
||||||
|
// Check that tuples are properly denested
|
||||||
|
assert(is(ElementType!(typeof(N4)) == Tuple!(size_t,size_t,size_t,size_t)));
|
||||||
|
|
||||||
assert(canFind(N4, tuple(1, 2, 3, 4)));
|
assert(canFind(N4, tuple(1, 2, 3, 4)));
|
||||||
assert(canFind(N4, tuple(4, 3, 2, 1)));
|
assert(canFind(N4, tuple(4, 3, 2, 1)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue