Skip to content

Commit

Permalink
Drop 'test_' prefix within test::
Browse files Browse the repository at this point in the history
  • Loading branch information
dcz authored and fatho committed Dec 1, 2024
1 parent cd06ece commit 167b59a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/textual/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ mod test {
}

#[test]
fn test_query_parsing() {
fn query_parsing() {
query_roundtrip_test("grandparent(bob, X).");
query_roundtrip_test("grandparent(bob, X), female(X).");

Expand All @@ -309,14 +309,14 @@ mod test {
}

#[test]
fn test_rule_parsing() {
fn rule_parsing() {
rule_roundtrip_test("is_natural(z).");
rule_roundtrip_test("is_natural(s(X)) :- is_natural(X).");
rule_roundtrip_test("grandparent(X, Y) :- parent(X, Z), parent(Z, Y).");
}

#[test]
fn test_comment_parsing() {
fn comment_parsing() {
let mut nu = SymbolStore::new();
let mut p = Parser::new(&mut nu);
let with_comment = p.parse_rule_str("foo. % example comment").unwrap();
Expand Down

0 comments on commit 167b59a

Please sign in to comment.