From 7da954c429580edba968b8fbb0e6c01dac02dbf3 Mon Sep 17 00:00:00 2001 From: Benoit Ranque Date: Fri, 30 Aug 2024 17:02:49 -0400 Subject: [PATCH] update tests --- crates/common/src/clickhouse_parser.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/crates/common/src/clickhouse_parser.rs b/crates/common/src/clickhouse_parser.rs index 16040a2..e724ce2 100644 --- a/crates/common/src/clickhouse_parser.rs +++ b/crates/common/src/clickhouse_parser.rs @@ -236,24 +236,11 @@ fn support_shorthands() { } } -#[test] -fn print_as_shorthand_when_possible() { - let test_cases = vec!["DateTime64", "Decimal", "Decimal(2)"]; - for s in test_cases { - let parsed = clickhouse_parser::data_type(s).expect("Able to parse type"); - assert_eq!( - s, - &parsed.to_string(), - "Serialize {s} as shorthand when possible" - ) - } -} - #[test] fn is_case_insensitive() { let test_cases = vec![ ("dateTime", "DateTime"), - ("daTetIme64", "DateTime64"), + ("daTetIme64", "DateTime64(3)"), ("bool", "Bool"), ("STRING", "String"), ];