Sort multiple packages within one line

This commit is contained in:
Sebastian Wilzbach 2017-06-12 08:18:25 +02:00
parent 998ad51fd7
commit 2070d867dd
14 changed files with 30 additions and 30 deletions

View file

@ -165,7 +165,7 @@ if (isBidirectionalRange!Range)
@safe unittest
{
import std.algorithm.comparison : equal;
import std.stdio, std.range;
import std.range, std.stdio;
import std.typecons : tuple;
ulong counter = 0;

View file

@ -1911,7 +1911,7 @@ if (((ss == SwapStrategy.unstable && (hasSwappableElements!Range ||
@safe unittest
{
// Simple regression benchmark
import std.random, std.algorithm.iteration, std.algorithm.mutation;
import std.algorithm.iteration, std.algorithm.mutation, std.random;
Random rng;
int[] a = iota(20148).map!(_ => uniform(-1000, 1000, rng)).array;
static uint comps;
@ -2833,7 +2833,7 @@ private template TimSortImpl(alias pred, R)
@safe unittest
{
// Issue 14223
import std.range, std.array;
import std.array, std.range;
auto arr = chain(iota(0, 384), iota(0, 256), iota(0, 80), iota(0, 64), iota(0, 96)).array;
sort!("a < b", SwapStrategy.stable)(arr);
}