in plot-api/src/jvmTest/kotlin/org/jetbrains/letsPlot/util/pngj/SuiteCrcsByteTest.kt [31:51]
fun testcrcs() {
val bad = LinkedHashMap<String, Long>()
var errs = 0
var ok = 0
for (file in crcs!!.keys) {
try {
val res = calcCrc(file)
val correct = crcs!![file]!!
if (res != correct) {
errs++
bad[file] = res
if (errs > 10) break
} else {
ok++
}
} catch (e: Exception) {
println("exception with " + file + ": " + e.message)
}
}
TestCase.assertEquals("bad crcs:$bad", 0, errs)
}