@@ -2649,15 +2649,15 @@ fn parse_use() {
26492649 let quote_styles = [ '\'' , '"' , '`' ] ;
26502650 for object_name in & valid_object_names {
26512651 // Test single identifier without quotes
2652- std :: assert_eq!(
2652+ assert_eq ! (
26532653 snowflake( ) . verified_stmt( & format!( "USE {}" , object_name) ) ,
26542654 Statement :: Use ( Use :: Object ( ObjectName ( vec![ Ident :: new(
26552655 object_name. to_string( )
26562656 ) ] ) ) )
26572657 ) ;
26582658 for & quote in & quote_styles {
26592659 // Test single identifier with different type of quotes
2660- std :: assert_eq!(
2660+ assert_eq ! (
26612661 snowflake( ) . verified_stmt( & format!( "USE {}{}{}" , quote, object_name, quote) ) ,
26622662 Statement :: Use ( Use :: Object ( ObjectName ( vec![ Ident :: with_quote(
26632663 quote,
@@ -2669,7 +2669,7 @@ fn parse_use() {
26692669
26702670 for & quote in & quote_styles {
26712671 // Test double identifier with different type of quotes
2672- std :: assert_eq!(
2672+ assert_eq ! (
26732673 snowflake( ) . verified_stmt( & format!( "USE {0}CATALOG{0}.{0}my_schema{0}" , quote) ) ,
26742674 Statement :: Use ( Use :: Object ( ObjectName ( vec![
26752675 Ident :: with_quote( quote, "CATALOG" ) ,
@@ -2678,7 +2678,7 @@ fn parse_use() {
26782678 ) ;
26792679 }
26802680 // Test double identifier without quotes
2681- std :: assert_eq!(
2681+ assert_eq ! (
26822682 snowflake( ) . verified_stmt( "USE mydb.my_schema" ) ,
26832683 Statement :: Use ( Use :: Object ( ObjectName ( vec![
26842684 Ident :: new( "mydb" ) ,
@@ -2688,35 +2688,35 @@ fn parse_use() {
26882688
26892689 for & quote in & quote_styles {
26902690 // Test single and double identifier with keyword and different type of quotes
2691- std :: assert_eq!(
2691+ assert_eq ! (
26922692 snowflake( ) . verified_stmt( & format!( "USE DATABASE {0}my_database{0}" , quote) ) ,
26932693 Statement :: Use ( Use :: Database ( ObjectName ( vec![ Ident :: with_quote(
26942694 quote,
26952695 "my_database" . to_string( ) ,
26962696 ) ] ) ) )
26972697 ) ;
2698- std :: assert_eq!(
2698+ assert_eq ! (
26992699 snowflake( ) . verified_stmt( & format!( "USE SCHEMA {0}my_schema{0}" , quote) ) ,
27002700 Statement :: Use ( Use :: Schema ( ObjectName ( vec![ Ident :: with_quote(
27012701 quote,
27022702 "my_schema" . to_string( ) ,
27032703 ) ] ) ) )
27042704 ) ;
2705- std :: assert_eq!(
2705+ assert_eq ! (
27062706 snowflake( ) . verified_stmt( & format!( "USE SCHEMA {0}CATALOG{0}.{0}my_schema{0}" , quote) ) ,
27072707 Statement :: Use ( Use :: Schema ( ObjectName ( vec![
27082708 Ident :: with_quote( quote, "CATALOG" ) ,
27092709 Ident :: with_quote( quote, "my_schema" )
27102710 ] ) ) )
27112711 ) ;
2712- std :: assert_eq!(
2712+ assert_eq ! (
27132713 snowflake( ) . verified_stmt( & format!( "USE ROLE {0}my_role{0}" , quote) ) ,
27142714 Statement :: Use ( Use :: Role ( ObjectName ( vec![ Ident :: with_quote(
27152715 quote,
27162716 "my_role" . to_string( ) ,
27172717 ) ] ) ) )
27182718 ) ;
2719- std :: assert_eq!(
2719+ assert_eq ! (
27202720 snowflake( ) . verified_stmt( & format!( "USE WAREHOUSE {0}my_wh{0}" , quote) ) ,
27212721 Statement :: Use ( Use :: Warehouse ( ObjectName ( vec![ Ident :: with_quote(
27222722 quote,
@@ -2728,7 +2728,7 @@ fn parse_use() {
27282728 // Test invalid syntax - missing identifier
27292729 let invalid_cases = [ "USE SCHEMA" , "USE DATABASE" , "USE WAREHOUSE" ] ;
27302730 for sql in & invalid_cases {
2731- std :: assert_eq!(
2731+ assert_eq ! (
27322732 snowflake( ) . parse_sql_statements( sql) . unwrap_err( ) ,
27332733 ParserError :: ParserError ( "Expected: identifier, found: EOF" . to_string( ) ) ,
27342734 ) ;
0 commit comments