File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,25 @@ use uutests::new_ucmd;
1010fn test_invalid_arg ( ) {
1111 new_ucmd ! ( ) . arg ( "--definitely-invalid" ) . fails_with_code ( 1 ) ;
1212}
13-
13+ #[ test]
14+ fn test_reference_format_for_stdin ( ) {
15+ let input = "Rust is good language" ;
16+ let expected_output = concat ! (
17+ r#".xx "" "" "Rust is good language" "" ":1""# ,
18+ "\n " ,
19+ r#".xx "" "Rust is" "good language" "" ":1""# ,
20+ "\n " ,
21+ r#".xx "" "Rust" "is good language" "" ":1""# ,
22+ "\n " ,
23+ r#".xx "" "Rust is good" "language" "" ":1""# ,
24+ "\n " ,
25+ ) ;
26+ new_ucmd ! ( )
27+ . args ( & [ "-G" , "-A" ] )
28+ . pipe_in ( input)
29+ . succeeds ( )
30+ . stdout_only ( expected_output) ;
31+ }
1432#[ test]
1533fn test_tex_format_no_truncation_markers ( ) {
1634 let input = "Hello world Rust is a fun language" ;
You can’t perform that action at this time.
0 commit comments