On Thursday, 27 June 2013 at 12:38:25 UTC, John Colvin wrote: Woops, sorry missed an assert unittest { assert(f(f(int.min)) == -(cast(long)int.min)); foreach(int n; int.min + 1 .. int.max) { assert(f(f(n)) == -n); } assert(f(f(int.max)) == -int.max); }