update test for new type anno format

This commit is contained in:
greg 2017-09-29 14:53:09 -07:00
parent d60cf99ab5
commit 98169bd352
1 changed files with 4 additions and 1 deletions

View File

@ -1083,7 +1083,10 @@ mod parse_tests {
fn parsing_type_annotations() {
parse_test!("const a = b : Int", AST(vec![
Declaration(Binding { name: rc!(a), constant: true, expr:
Expression(var!("b"), Some(TypeAnno(rc!(Int)))) })]));
Expression(var!("b"), Some(TypeAnno::Singleton {
name: rc!(Int),
params: vec![],
})) })]));
}