Skip to content

Commit

Permalink
add test to check invalid names used
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Nov 15, 2024
1 parent 83f4d18 commit 6f40a52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,14 @@ mod tests {
assert_eq!(model.objects[0].attributes.len(), 1);
assert!(model.objects[0].attributes[0].is_array);
}

#[test]
#[should_panic]
fn test_invalid_names() {
// Arrange
let path = Path::new("tests/data/model_invalid_names.md");

// Act
DataModel::from_markdown(path).expect("Could not parse markdown");
}
}

0 comments on commit 6f40a52

Please sign in to comment.