public class CopperTests {
@Test(expected= ToolError.class)
public void testVal2() throws IOException, CopperParserException {
String input = "val yx:Int = false\nyx";
TypedAST res = (TypedAST)new Wyvern().parse(new StringReader(input), "test input");
res.typecheck(Globals.getStandardEnv(), Optional.empty());
}
@Test(expected= RuntimeException.class)
public void testVal3() throws IOException, CopperParserException {
String input = "val yx:Int = 3\nyx = 9\nyx";
TypedAST res = (TypedAST)new Wyvern().parse(new StringReader(input), "test input");