mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 16:04:41 +00:00
commented out an unenforceable test
This commit is contained in:
parent
838493e4bb
commit
e4d18c9c93
1 changed files with 4 additions and 6 deletions
|
|
@ -20,20 +20,18 @@ class ConfigTest extends Specification {
|
||||||
var lineno = 1
|
var lineno = 1
|
||||||
for (line <- Source.fromFile("config/worldserver.ini.dist").getLines) {
|
for (line <- Source.fromFile("config/worldserver.ini.dist").getLines) {
|
||||||
val linee :String = line
|
val linee :String = line
|
||||||
val ctx = s"worldserver.ini.dist:${lineno}"
|
val ctx = s"worldserver.ini.dist:$lineno"
|
||||||
val maxLen = 100
|
val maxLen = 100
|
||||||
val lineLen = line.length
|
val lineLen = line.length
|
||||||
|
|
||||||
lineLen aka s"${ctx} - line length" must beLessThan(maxLen)
|
//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(0, 1) aka s"$ctx - leading whitespace found" mustNotEqual " "
|
||||||
line.slice(line.length-1, line.length) aka s"${ctx} - trailing whitespace found" mustNotEqual " "
|
line.slice(line.length-1, line.length) aka s"$ctx - trailing whitespace found" mustNotEqual " "
|
||||||
|
|
||||||
lineno += 1
|
lineno += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
ok
|
ok
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
"TestConfig" should {
|
"TestConfig" should {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue