Warning: session_start(): open(/var/lib/php/sessions/sess_qu9gt0v2eb2ecigg851bb0vdnt, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
svoid test_pixelSpiral() { int maxW = 10, maxH = maxW; for (int w = 1; w <= maxW; w++) for (int h = 1; h <= maxH; h++) { print("Testing " + w + "*" + h); Set allPoints = asSet(allPointsInRect(w, h)); for x to w: for y to h: { print(" " + x + "/" + y); L l = asList(pixelSpiral(x, y, w, h)); assertEquals(l(l), w*h); assertEquals(asSet(l), allPoints); assertEquals(first(l), pt(x, y)); // We trust the remaining points are in the correct order } } print("pixelSpiral (probably) OK up to " + maxW + "*" + maxH); }