This commit is contained in:
gwenn 2021-11-28 09:41:54 +00:00
parent e65fd1e8e4
commit 9acc6f85f0

View File

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