diff options
author | JJ | 2023-04-06 22:41:55 +0000 |
---|---|---|
committer | JJ | 2023-04-06 22:41:55 +0000 |
commit | a5c2add97c11237b3f0a224b1ec90dcf447cc2b5 (patch) | |
tree | 0b76e01c20a03d7e861016caa109aa792446afe5 /tests/test_parser.rs | |
parent | 4183e659af29571110dfff91b89b58de7c8dd449 (diff) |
don't panic when parsing bad types (this is genuinely awful)
Diffstat (limited to 'tests/test_parser.rs')
-rw-r--r-- | tests/test_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_parser.rs b/tests/test_parser.rs index 958fc37..54311b8 100644 --- a/tests/test_parser.rs +++ b/tests/test_parser.rs @@ -17,7 +17,7 @@ fn test_simple_phrases() { fn test_simple_annotations() { assert_eq!(parse_str("t: int"), Ok(Ann(Var("t"), Type::Integer))); assert_eq!(parse_str("12: nat"), Ok(Ann(Const(12, Type::Empty), Type::Natural))); - // assert!(parse_str("t: fake").is_err()); // fixme: currently panics + assert!(parse_str("t: fake").is_err()); } #[test] |