Make test compile

This commit is contained in:
Yuriy Dupyn 2024-02-01 14:57:45 +01:00
parent fbd7bf1f72
commit 22a2730b96
4 changed files with 128 additions and 143 deletions

View file

@ -82,11 +82,11 @@ mod tests {
#[test]
fn test_parse_equality() {
use minisql::type_system::{IndexableValue, Value};
use minisql::type_system::Value;
match parse_equality("id = 1") {
Ok(("", Condition::Eq(column_name, value))) => {
assert!(column_name.eq("id"));
assert_eq!(value, Value::Indexable(IndexableValue::Int(1)))
assert_eq!(value, Value::Int(1))
}
_ => {
panic!("should parse");