Skip to content

Commit

Permalink
add unhandled multi-line comment test
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Aug 5, 2024
1 parent e3dc131 commit 9312993
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -785,4 +785,28 @@ SELECT enum FROM "test_introspect_sql"."model" WHERE id = $1;"#,

expected.assert_debug_eq(&res);
}

#[test]
fn parse_sql_5() {
use expect_test::expect;

let res = parse_sql_doc(
r#"
/**
* Unhandled multi-line comment
*/
SELECT enum FROM "test_introspect_sql"."model" WHERE id = $1;"#,
);

let expected = expect![[r#"
Ok(
ParsedSqlDoc {
parameters: [],
description: None,
},
)
"#]];

expected.assert_debug_eq(&res);
}
}

0 comments on commit 9312993

Please sign in to comment.