Skip to content

Commit db93860

Browse files
committed
Remove std prefix
1 parent 87bfbce commit db93860

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/sqlparser_common.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -12461,12 +12461,13 @@ fn parse_create_table_with_bit_types() {
1246112461
}
1246212462
}
1246312463

12464+
#[test]
1246412465
fn parse_create_table_with_enum_types() {
1246512466
let sql = "CREATE TABLE t0 (foo ENUM8('a' = 1, 'b' = 2), bar ENUM16('a' = 1, 'b' = 2), baz ENUM('a', 'b'))";
1246612467
match all_dialects().verified_stmt(sql) {
1246712468
Statement::CreateTable(CreateTable { name, columns, .. }) => {
12468-
std::assert_eq!(name.to_string(), "t0");
12469-
std::assert_eq!(
12469+
assert_eq!(name.to_string(), "t0");
12470+
assert_eq!(
1247012471
vec![
1247112472
ColumnDef {
1247212473
name: Ident::new("foo"),
@@ -12524,15 +12525,15 @@ fn parse_create_table_with_enum_types() {
1252412525
}
1252512526

1252612527
// invalid case missing value for enum pair
12527-
std::assert_eq!(
12528+
assert_eq!(
1252812529
all_dialects()
1252912530
.parse_sql_statements("CREATE TABLE t0 (foo ENUM8('a' = 1, 'b' = ))")
1253012531
.unwrap_err(),
1253112532
ParserError::ParserError("Expected: a value, found: )".to_string())
1253212533
);
1253312534

1253412535
// invalid case that name is not a string
12535-
std::assert_eq!(
12536+
assert_eq!(
1253612537
all_dialects()
1253712538
.parse_sql_statements("CREATE TABLE t0 (foo ENUM8('a' = 1, 2))")
1253812539
.unwrap_err(),

0 commit comments

Comments
 (0)