Planned maintenance on Wednesday, 2021-01-20, 17:00-18:00. Expect some interruptions during that time

scalariform

parent 2e894d75
package eu.nomad_lab.parsers
import eu.{nomad_lab=>lab}
import eu.{ nomad_lab => lab }
import eu.nomad_lab.DefaultPythonInterpreter
import org.{json4s => jn}
import org.{ json4s => jn }
import scala.collection.breakOut
object DlPolyParser extends SimpleExternalParserGenerator(
......@@ -12,8 +12,9 @@ object DlPolyParser extends SimpleExternalParserGenerator(
("parserId" -> jn.JString("DlPolyParser" + lab.DlPolyVersionInfo.version)) ::
("versionInfo" -> jn.JObject(
("nomadCoreVersion" -> jn.JString(lab.NomadCoreVersionInfo.version)) ::
(lab.DlPolyVersionInfo.toMap.map{ case (key, value) =>
(key -> jn.JString(value.toString))
(lab.DlPolyVersionInfo.toMap.map {
case (key, value) =>
(key -> jn.JString(value.toString))
}(breakOut): List[(String, jn.JString)])
)) :: Nil
),
......
......@@ -2,15 +2,13 @@ package eu.nomad_lab.parsers
import org.specs2.mutable.Specification
object DlPolyParserSpec extends Specification {
"DlPolyParserTest" >> {
"test with json-events" >> {
ParserRun.parse(DlPolyParser,"parsers/dl-poly/test/examples/dl-poly-test1/OUTPUT","json-events") must_== ParseResult.ParseSuccess
"test with json-events" >> {
ParserRun.parse(DlPolyParser, "parsers/dl-poly/test/examples/dl-poly-test1/OUTPUT", "json-events") must_== ParseResult.ParseSuccess
}
"test with json" >> {
ParserRun.parse(DlPolyParser,"parsers/dl-poly/test/examples/dl-poly-test1/OUTPUT","json") must_== ParseResult.ParseSuccess
"test with json" >> {
ParserRun.parse(DlPolyParser, "parsers/dl-poly/test/examples/dl-poly-test1/OUTPUT", "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