Skip to content

Commit

Permalink
test: missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
effervescentia committed Apr 15, 2024
1 parent 8aaf2d1 commit d03aa88
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions analyze/tests/semantic_errors_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,19 @@ fn not_indexable() {
);
}

#[test]
fn property_not_found() {
let source = "func foo(args: { bar: integer }) -> args.fizz";

assert_eq!(
Mock::default().parse_and_analyze(source),
Err(vec![(
NodeId(4),
Error::PropertyNotFound(CanonicalId::mock(3), str!("fizz"))
),])
);
}

#[test]
fn duplicate_property() {
let source = "
Expand Down

0 comments on commit d03aa88

Please sign in to comment.