Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Jan 27, 2024
1 parent 7d2604f commit 36457dd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/mysql/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,20 @@ fn create_9() {
);
}

#[test]
fn create_10() {
assert_eq!(
Table::create()
.table(Glyph::Table)
.col(
ColumnDef::new(Glyph::Id)
.enumeration(Alias::new("tea"), [Alias::new("EverydayTea"), Alias::new("BreakfastTea")]),
)
.to_string(MysqlQueryBuilder),
"CREATE TABLE `glyph` ( `id` ENUM('EverydayTea', 'BreakfastTea') )"
);
}

#[test]
fn drop_1() {
assert_eq!(
Expand Down

0 comments on commit 36457dd

Please sign in to comment.