Ignore dcl_type case

This commit is contained in:
gwenn 2021-11-28 09:38:24 +00:00
parent 19d0887179
commit e65fd1e8e4

View File

@ -165,10 +165,10 @@ mod test {
column_names.as_slice(), column_names.as_slice(),
&["type", "name", "tbl_name", "rootpage", "sql"] &["type", "name", "tbl_name", "rootpage", "sql"]
); );
let column_types: Vec<Option<&str>> = columns.iter().map(Column::decl_type).collect(); let column_types: Vec<Option<String>> = columns.iter().map(|col| col.decl_type().map(str::to_lowercase)).collect();
assert_eq!( assert_eq!(
&column_types[..3], &column_types[..3],
&[Some("text"), Some("text"), Some("text"),] &[Some("text".to_owned()), Some("text".to_owned()), Some("text".to_owned()),]
); );
Ok(()) Ok(())
} }