@@ -29,39 +29,19 @@ fn test_split_text_args_double_quoted_string_with_comma() {
2929#[ test]
3030fn test_split_text_args_nested_quotes_and_escapes ( ) {
3131 let args = split_text_args ( r#""a,\"b,c\",d", 'x,\'y,z\'', foo)"# ) ;
32- assert_eq ! (
33- args,
34- vec![
35- r#""a,\"b,c\",d""# ,
36- " 'x,\\ 'y,z\\ ''" ,
37- " foo)"
38- ]
39- ) ;
32+ assert_eq ! ( args, vec![ r#""a,\"b,c\",d""# , " 'x,\\ 'y,z\\ ''" , " foo)" ] ) ;
4033}
4134
4235#[ test]
4336fn test_split_text_args_mixed_quotes_and_brackets ( ) {
4437 let args = split_text_args ( r#"array('a,b', ["x,y"]), "foo,bar""# ) ;
45- assert_eq ! (
46- args,
47- vec![
48- r#"array('a,b', ["x,y"])"# ,
49- r#" "foo,bar""#
50- ]
51- ) ;
38+ assert_eq ! ( args, vec![ r#"array('a,b', ["x,y"])"# , r#" "foo,bar""# ] ) ;
5239}
5340
5441#[ test]
5542fn test_split_text_args_escaped_quotes ( ) {
5643 let args = split_text_args ( r#"'foo\,bar', "baz\"qux", plain"# ) ;
57- assert_eq ! (
58- args,
59- vec![
60- r#"'foo\,bar'"# ,
61- r#" "baz\"qux""# ,
62- " plain"
63- ]
64- ) ;
44+ assert_eq ! ( args, vec![ r#"'foo\,bar'"# , r#" "baz\"qux""# , " plain" ] ) ;
6545}
6646
6747#[ test]
@@ -71,4 +51,4 @@ fn test_split_text_args_empty_and_whitespace() {
7151
7252 let args = split_text_args ( "" ) ;
7353 assert_eq ! ( args, Vec :: <& str >:: new( ) ) ;
74- }
54+ }
0 commit comments