Fix std.algorithm.topN example

This commit is contained in:
Jakob Ovrum 2013-12-16 16:56:48 +09:00
parent b8bdef9c42
commit 09fc88f719

View file

@ -8614,10 +8614,7 @@ unittest
{
int[] v = [ 25, 7, 9, 2, 0, 5, 21 ];
auto n = 4;
topN!(less)(v, n);
assert(v[n] == 9);
// Equivalent form:
topN!("a < b")(v, n);
topN!"a < b"(v, n);
assert(v[n] == 9);
}