File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -96,28 +96,3 @@ fn convert_dotnet_format_to_chrono(format: &str) -> String {
96
96
97
97
converted_format
98
98
}
99
-
100
- #[ cfg( test) ]
101
- mod tests {
102
- use crate :: configure:: context:: Context ;
103
- use crate :: parser:: Statement ;
104
- use serde_json:: Value ;
105
-
106
- #[ test]
107
- fn without_format ( ) {
108
- let mut parser = Statement :: new ( ) . unwrap ( ) ;
109
- let mut context = Context :: new ( ) ;
110
- context. processing_parameter_defaults = true ; // Simulate processing parameter defaults
111
- let result = parser. parse_and_execute ( "[utcNow()]" , & context) . unwrap ( ) ;
112
- assert_eq ! ( result, Value :: String ( chrono:: Utc :: now( ) . to_rfc3339( ) ) ) ;
113
- }
114
-
115
- #[ test]
116
- fn with_format ( ) {
117
- let mut parser = Statement :: new ( ) . unwrap ( ) ;
118
- let mut context = Context :: new ( ) ;
119
- context. processing_parameter_defaults = true ; // Simulate processing parameter defaults
120
- let result = parser. parse_and_execute ( "[utcNow('yyyy-MM-dd')]" , & context) . unwrap ( ) ;
121
- assert_eq ! ( result, Value :: String ( chrono:: Utc :: now( ) . format( "yyyy-MM-dd" ) . to_string( ) ) ) ;
122
- }
123
- }
You can’t perform that action at this time.
0 commit comments