To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

UvmIRParserSpec.scala 710 Bytes
Newer Older
Kunshan Wang's avatar
Kunshan Wang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package uvm.ir.textinput

import collection.mutable.Stack
import org.scalatest._

class UvmIRParserSpec extends FlatSpec with Matchers {

  def parseFile(fileName: String) {
    val ir = UvmIRParser(new java.io.FileReader(fileName))
    println(ir)
  }

  "The IRParser" should "parse simple type definitions" in {
    parseFile("tests/uvm-parsing-test/types.uir")
  }
  it should "parse simple constant definitions" in {
    parseFile("tests/uvm-parsing-test/constants.uir")
  }
  it should "parse simple function definitions" in {
    parseFile("tests/uvm-parsing-test/functions.uir")
  }
  it should "parse simple instruction definitions" in {
    parseFile("tests/uvm-parsing-test/instructions.uir")
  }

}