Commit 7b6b8243 authored by Berk Onat's avatar Berk Onat

Correction of the test names in charmm parser

parent 811d5cd7
......@@ -6,16 +6,16 @@ import org.{ json4s => jn }
import eu.{ nomad_lab => lab }
import scala.collection.breakOut
object CHARMMParser extends SimpleExternalParserGenerator(
name = "CHARMMParser",
object CharmmParser extends SimpleExternalParserGenerator(
name = "CharmmParser",
parserInfo = jn.JObject(
("name" -> jn.JString("CHARMMParser")) ::
("parserId" -> jn.JString("CHARMMParser" + lab.CHARMMVersionInfo.version)) ::
("name" -> jn.JString("CharmmParser")) ::
("parserId" -> jn.JString("CharmmParser" + lab.CharmmVersionInfo.version)) ::
("versionInfo" -> jn.JObject(
("nomadCoreVersion" -> jn.JObject(lab.NomadCoreVersionInfo.toMap.map {
case (k, v) => k -> jn.JString(v.toString)
}(breakOut): List[(String, jn.JString)])) ::
(lab.CHARMMVersionInfo.toMap.map {
(lab.CharmmVersionInfo.toMap.map {
case (key, value) =>
(key -> jn.JString(value.toString))
}(breakOut): List[(String, jn.JString)])
......
......@@ -2,43 +2,43 @@ package eu.nomad_lab.parsers
import org.specs2.mutable.Specification
object CHARMMParserTests extends Specification {
"CHARMMParserTest" >> {
object CharmmParserTests extends Specification {
"CharmmParserTest" >> {
"[MINI brbtest] test with json-events" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/brbtest/brbtest.out", "json-events") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/brbtest/brbtest.out", "json-events") must_== ParseResult.ParseSuccess
}
"[MINI brbtest] test with json" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/brbtest/brbtest.out", "json") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/brbtest/brbtest.out", "json") must_== ParseResult.ParseSuccess
}
"[DYNA dyntest1] test with json-events" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/dyntest1/dyntest1.out", "json-events") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/dyntest1/dyntest1.out", "json-events") must_== ParseResult.ParseSuccess
}
"[DYNA dyntest1] test with json" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/dyntest1/dyntest1.out", "json") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/dyntest1/dyntest1.out", "json") must_== ParseResult.ParseSuccess
}
"[LANGEVIN dyntest2] test with json-events" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/dyntest2/dyntest2.out", "json-events") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/dyntest2/dyntest2.out", "json-events") must_== ParseResult.ParseSuccess
}
"[LANGEVIN dyntest2] test with json" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/dyntest2/dyntest2.out", "json") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/dyntest2/dyntest2.out", "json") must_== ParseResult.ParseSuccess
}
"[langtest1] test with json-events" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/langtest1/langtest1.out", "json-events") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/langtest1/langtest1.out", "json-events") must_== ParseResult.ParseSuccess
}
"[langtest1] test with json" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/langtest1/langtest1.out", "json") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/langtest1/langtest1.out", "json") must_== ParseResult.ParseSuccess
}
"[nose1] test with json-events" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/nose1/nose1.out", "json-events") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/nose1/nose1.out", "json-events") must_== ParseResult.ParseSuccess
}
"[nose1] test with json" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/nose1/nose1.out", "json") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/nose1/nose1.out", "json") must_== ParseResult.ParseSuccess
}
"[tip4ptest] test with json-events" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/tip4ptest/tip4ptest.out", "json-events") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/tip4ptest/tip4ptest.out", "json-events") must_== ParseResult.ParseSuccess
}
"[tip4ptest] test with json" >> {
ParserRun.parse(CHARMMParser, "parsers/charmm/test/examples/tip4ptest/tip4ptest.out", "json") must_== ParseResult.ParseSuccess
ParserRun.parse(CharmmParser, "parsers/charmm/test/examples/tip4ptest/tip4ptest.out", "json") must_== ParseResult.ParseSuccess
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment