Skip to content

Commit 3608d8c

Browse files
committed
Remove statement count assertion from statements_parse_to
1 parent dbf7606 commit 3608d8c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/test_utils.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,8 @@ impl TestedDialects {
169169
}
170170

171171
/// The same as [`one_statement_parses_to`] but it works for a multiple statements
172-
pub fn statements_parse_to(
173-
&self,
174-
sql: &str,
175-
statement_count: usize,
176-
canonical: &str,
177-
) -> Vec<Statement> {
172+
pub fn statements_parse_to(&self, sql: &str, canonical: &str) -> Vec<Statement> {
178173
let statements = self.parse_sql_statements(sql).expect(sql);
179-
assert_eq!(statements.len(), statement_count);
180174
if !canonical.is_empty() && sql != canonical {
181175
assert_eq!(self.parse_sql_statements(canonical).unwrap(), statements);
182176
} else {

tests/sqlparser_mssql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ fn test_mssql_cursor() {
14141414
CLOSE Employee_Cursor; \
14151415
DEALLOCATE Employee_Cursor\
14161416
";
1417-
let _ = ms().statements_parse_to(full_cursor_usage, 6, "");
1417+
let _ = ms().statements_parse_to(full_cursor_usage, "");
14181418
}
14191419

14201420
#[test]

0 commit comments

Comments
 (0)