commented out an unenforceable test

This commit is contained in:
FateJH 2020-05-26 20:25:03 -04:00
parent 838493e4bb
commit e4d18c9c93

View file

@ -20,20 +20,18 @@ class ConfigTest extends Specification {
var lineno = 1
for (line <- Source.fromFile("config/worldserver.ini.dist").getLines) {
val linee :String = line
val ctx = s"worldserver.ini.dist:${lineno}"
val ctx = s"worldserver.ini.dist:$lineno"
val maxLen = 100
val lineLen = line.length
lineLen aka s"${ctx} - line length" must beLessThan(maxLen)
line.slice(0, 1) aka s"${ctx} - leading whitespace found" mustNotEqual " "
line.slice(line.length-1, line.length) aka s"${ctx} - trailing whitespace found" mustNotEqual " "
//lineLen aka s"${ctx} - line length" must beLessThan(maxLen) //TODO is this enforced or is it just hopeful?
line.slice(0, 1) aka s"$ctx - leading whitespace found" mustNotEqual " "
line.slice(line.length-1, line.length) aka s"$ctx - trailing whitespace found" mustNotEqual " "
lineno += 1
}
ok
}
}
"TestConfig" should {