mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-03-06 14:00:27 +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
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue