Skip to content
Snippets Groups Projects
Select Git revision
  • ceb9a09e031016b0fc366667d79c9b44ea8a5c7f
  • master default protected
  • legacy-metainfo
  • nomad-coe
  • preMetaRename
  • 1.0.0
  • 0.1.0
  • 0.0.0
8 results

GulpParserSpec.scala

Blame
  • GulpParserSpec.scala 20.95 KiB
    /*
     * Copyright 2016-2018 Ask Hjorth Larsen, Fawzi Mohamed
     * 
     *   Licensed under the Apache License, Version 2.0 (the "License");
     *   you may not use this file except in compliance with the License.
     *   You may obtain a copy of the License at
     * 
     *     http://www.apache.org/licenses/LICENSE-2.0
     * 
     *   Unless required by applicable law or agreed to in writing, software
     *   distributed under the License is distributed on an "AS IS" BASIS,
     *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     *   See the License for the specific language governing permissions and
     *   limitations under the License.
     */
    
    package eu.nomad_lab.parsers
    
    import eu.nomad_lab.{ parsers, DefaultPythonInterpreter }
    import org.scalacheck.Properties
    import org.specs2.mutable.Specification
    import org.{ json4s => jn }
    
    object GulpParserSpec extends Specification {
      "GulpParserTest" >> {
        "test example1.got " >> {
          "test with json-events" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example1.got", "json-events") must_== ParseResult.ParseSuccess
          }
          "test with json" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example1.got", "json") must_== ParseResult.ParseSuccess
          }
        }
        "test example10.got " >> {
          "test with json-events" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example10.got", "json-events") must_== ParseResult.ParseSuccess
          }
          "test with json" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example10.got", "json") must_== ParseResult.ParseSuccess
          }
        }
        "test example11.got " >> {
          "test with json-events" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example11.got", "json-events") must_== ParseResult.ParseSuccess
          }
          "test with json" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example11.got", "json") must_== ParseResult.ParseSuccess
          }
        }
        "test example12.got " >> {
          "test with json-events" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example12.got", "json-events") must_== ParseResult.ParseSuccess
          }
          "test with json" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example12.got", "json") must_== ParseResult.ParseSuccess
          }
        }
        "test example13.got " >> {
          "test with json-events" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example13.got", "json-events") must_== ParseResult.ParseSuccess
          }
          "test with json" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example13.got", "json") must_== ParseResult.ParseSuccess
          }
        }
        "test example14.got " >> {
          "test with json-events" >> {
            ParserRun.parse(GulpParser, "parsers/gulp/test/examples/outputs/example14.got", "json-events") must_== ParseResult.ParseSuccess
          }
          "test with json" >> {