GaussianParserSpec.scala 638 Bytes
Newer Older
1
2
package eu.nomad_lab.parsers

Mohamed, Fawzi Roberto (fawzi)'s avatar
Mohamed, Fawzi Roberto (fawzi) committed
3
import eu.nomad_lab.{ parsers, DefaultPythonInterpreter }
4
5
import org.scalacheck.Properties
import org.specs2.mutable.Specification
Mohamed, Fawzi Roberto (fawzi)'s avatar
Mohamed, Fawzi Roberto (fawzi) committed
6
import org.{ json4s => jn }
7
8
9

object GaussianParserSpec extends Specification {
  "GaussianParserTest" >> {
Mohamed, Fawzi Roberto (fawzi)'s avatar
Mohamed, Fawzi Roberto (fawzi) committed
10
    "test with Al.out" >> {
11
      "test with json-events" >> {
Mohamed, Fawzi Roberto (fawzi)'s avatar
Mohamed, Fawzi Roberto (fawzi) committed
12
        ParserRun.parse(GaussianParser, "parsers/gaussian/test/examples/Al.out", "json-events") must_== ParseResult.ParseSuccess
13
14
      }
      "test with json" >> {
Mohamed, Fawzi Roberto (fawzi)'s avatar
Mohamed, Fawzi Roberto (fawzi) committed
15
        ParserRun.parse(GaussianParser, "parsers/gaussian/test/examples/Al.out", "json") must_== ParseResult.ParseSuccess
16
      }
17
18
19
    }
  }
}