From 36457ddd7f4b8ea9b5519196332f81cbcda66861 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sat, 27 Jan 2024 15:46:58 +0000 Subject: [PATCH] More tests --- tests/mysql/table.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/mysql/table.rs b/tests/mysql/table.rs index 213d67b09..6a62974ca 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!(