diff --git a/tests/mysql/table.rs b/tests/mysql/table.rs index 213d67b0..6a62974c 100644 --- a/tests/mysql/table.rs +++ b/tests/mysql/table.rs @@ -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!(