// We're mainly testing the "last 7 bits" svoid testImage2B() { for (int w = 1; w <= 16; w++) { print("Testing width " + w); repeat 100 { int threshold = random(257); var img = randomBWImage(w, 1); var binaryImage = new Image2B(img, threshold); verifyImage2B(img, binaryImage, threshold); } } }