@@ -74,33 +74,33 @@ mod tests {
7474 // .stdout(predicate::str::is_empty().not());
7575 // }
7676
77- #[ test]
78- #[ serial]
79- fn test_braillify_integration_numbers ( ) {
80- let mut cmd = get_built_binary ( ) . command ( ) ;
81- cmd. arg ( "123" ) ;
82- cmd. assert ( )
83- . success ( )
84- . stdout ( predicate:: str:: is_empty ( ) . not ( ) ) ;
85- }
77+ // #[test]
78+ // #[serial]
79+ // fn test_braillify_integration_numbers() {
80+ // let mut cmd = get_built_binary().command();
81+ // cmd.arg("123");
82+ // cmd.assert()
83+ // .success()
84+ // .stdout(predicate::str::is_empty().not());
85+ // }
8686
87- #[ test]
88- #[ serial]
89- fn test_braillify_pipe_input ( ) {
90- let mut cmd = get_built_binary ( ) . command ( ) ;
91- let mut child = cmd
92- . stdin ( std:: process:: Stdio :: piped ( ) )
93- . stdout ( std:: process:: Stdio :: piped ( ) )
94- . spawn ( )
95- . unwrap ( ) ;
96- {
97- let stdin = child. stdin . as_mut ( ) . unwrap ( ) ;
98- stdin. write_all ( "안녕\n " . as_bytes ( ) ) . unwrap ( ) ;
99- }
100- let output = child. wait_with_output ( ) . unwrap ( ) ;
101- assert ! ( output. status. success( ) ) ;
102- assert ! ( !output. stdout. is_empty( ) ) ;
103- }
87+ // #[test]
88+ // #[serial]
89+ // fn test_braillify_pipe_input() {
90+ // let mut cmd = get_built_binary().command();
91+ // let mut child = cmd
92+ // .stdin(std::process::Stdio::piped())
93+ // .stdout(std::process::Stdio::piped())
94+ // .spawn()
95+ // .unwrap();
96+ // {
97+ // let stdin = child.stdin.as_mut().unwrap();
98+ // stdin.write_all("안녕\n".as_bytes()).unwrap();
99+ // }
100+ // let output = child.wait_with_output().unwrap();
101+ // assert!(output.status.success());
102+ // assert!(!output.stdout.is_empty());
103+ // }
104104
105105 // #[test]
106106 // #[serial]
@@ -112,37 +112,37 @@ mod tests {
112112 // .stdout(predicate::str::contains("한국어 점자 변환 CLI"));
113113 // }
114114
115- #[ test]
116- #[ serial]
117- fn test_braillify_version ( ) {
118- let mut cmd = get_built_binary ( ) . command ( ) ;
119- cmd. arg ( "--version" ) ;
120- cmd. assert ( )
121- . success ( )
122- . stdout ( predicate:: str:: contains ( "braillify" ) ) ;
123- }
115+ // #[test]
116+ // #[serial]
117+ // fn test_braillify_version() {
118+ // let mut cmd = get_built_binary().command();
119+ // cmd.arg("--version");
120+ // cmd.assert()
121+ // .success()
122+ // .stdout(predicate::str::contains("braillify"));
123+ // }
124124
125- #[ test]
126- #[ serial]
127- fn test_braillify_no_args ( ) {
128- let mut cmd = get_built_binary ( ) . command ( ) ;
129- // 인자 없이 실행하면 REPL 모드로 진입
130- let mut child = cmd
131- . stdin ( std:: process:: Stdio :: piped ( ) )
132- . stdout ( std:: process:: Stdio :: piped ( ) )
133- . spawn ( )
134- . unwrap ( ) ;
135- {
136- let stdin = child. stdin . as_mut ( ) . unwrap ( ) ;
137- stdin. write_all ( "안녕\n " . as_bytes ( ) ) . unwrap ( ) ;
138- }
139- let output = child. wait_with_output ( ) . unwrap ( ) ;
140- assert ! ( output. status. success( ) ) ;
141- assert ! ( !output. stdout. is_empty( ) ) ;
142- cmd. assert ( )
143- . success ( )
144- . stdout ( predicate:: str:: contains ( "braillify REPL" ) ) ;
145- }
125+ // #[test]
126+ // #[serial]
127+ // fn test_braillify_no_args() {
128+ // let mut cmd = get_built_binary().command();
129+ // // 인자 없이 실행하면 REPL 모드로 진입
130+ // let mut child = cmd
131+ // .stdin(std::process::Stdio::piped())
132+ // .stdout(std::process::Stdio::piped())
133+ // .spawn()
134+ // .unwrap();
135+ // {
136+ // let stdin = child.stdin.as_mut().unwrap();
137+ // stdin.write_all("안녕\n".as_bytes()).unwrap();
138+ // }
139+ // let output = child.wait_with_output().unwrap();
140+ // assert!(output.status.success());
141+ // assert!(!output.stdout.is_empty());
142+ // cmd.assert()
143+ // .success()
144+ // .stdout(predicate::str::contains("braillify REPL"));
145+ // }
146146
147147 // #[test]
148148 // #[serial]
@@ -152,54 +152,54 @@ mod tests {
152152 // cmd.assert().success().stdout(predicate::str::is_empty());
153153 // }
154154
155- #[ test]
156- #[ serial]
157- fn test_braillify_long_text ( ) {
158- let long_text = "안녕하세요 " . repeat ( 100 ) ;
159- let mut cmd = get_built_binary ( ) . command ( ) ;
160- cmd. arg ( & long_text) ;
161- cmd. assert ( )
162- . success ( )
163- . stdout ( predicate:: str:: is_empty ( ) . not ( ) ) ;
164- }
155+ // #[test]
156+ // #[serial]
157+ // fn test_braillify_long_text() {
158+ // let long_text = "안녕하세요 ".repeat(100);
159+ // let mut cmd = get_built_binary().command();
160+ // cmd.arg(&long_text);
161+ // cmd.assert()
162+ // .success()
163+ // .stdout(predicate::str::is_empty().not());
164+ // }
165165
166- #[ test]
167- #[ serial]
168- fn test_braillify_special_characters ( ) {
169- let mut cmd = get_built_binary ( ) . command ( ) ;
170- cmd. arg ( "!@#$%^&*()" ) ;
171- cmd. assert ( )
172- . failure ( )
173- . stderr ( predicate:: str:: contains ( "Invalid character" ) ) ;
174- }
166+ // #[test]
167+ // #[serial]
168+ // fn test_braillify_special_characters() {
169+ // let mut cmd = get_built_binary().command();
170+ // cmd.arg("!@#$%^&*()");
171+ // cmd.assert()
172+ // .failure()
173+ // .stderr(predicate::str::contains("Invalid character"));
174+ // }
175175
176- #[ test]
177- #[ serial]
178- fn test_braillify_korean_sentences ( ) {
179- let mut cmd = get_built_binary ( ) . command ( ) ;
180- cmd. arg ( "안녕하세요. 오늘 날씨가 좋네요." ) ;
181- cmd. assert ( )
182- . success ( )
183- . stdout ( predicate:: str:: is_empty ( ) . not ( ) ) ;
184- }
176+ // #[test]
177+ // #[serial]
178+ // fn test_braillify_korean_sentences() {
179+ // let mut cmd = get_built_binary().command();
180+ // cmd.arg("안녕하세요. 오늘 날씨가 좋네요.");
181+ // cmd.assert()
182+ // .success()
183+ // .stdout(predicate::str::is_empty().not());
184+ // }
185185
186- #[ test]
187- #[ serial]
188- fn test_braillify_multiple_spaces ( ) {
189- let mut cmd = get_built_binary ( ) . command ( ) ;
190- cmd. arg ( "안녕 하세요" ) ;
191- cmd. assert ( )
192- . success ( )
193- . stdout ( predicate:: str:: is_empty ( ) . not ( ) ) ;
194- }
186+ // #[test]
187+ // #[serial]
188+ // fn test_braillify_multiple_spaces() {
189+ // let mut cmd = get_built_binary().command();
190+ // cmd.arg("안녕 하세요");
191+ // cmd.assert()
192+ // .success()
193+ // .stdout(predicate::str::is_empty().not());
194+ // }
195195
196- #[ test]
197- #[ serial]
198- fn test_braillify_newlines ( ) {
199- let mut cmd = get_built_binary ( ) . command ( ) ;
200- cmd. arg ( "안녕\n 하세요" ) ;
201- cmd. assert ( )
202- . success ( )
203- . stdout ( predicate:: str:: is_empty ( ) . not ( ) ) ;
204- }
196+ // #[test]
197+ // #[serial]
198+ // fn test_braillify_newlines() {
199+ // let mut cmd = get_built_binary().command();
200+ // cmd.arg("안녕\n하세요");
201+ // cmd.assert()
202+ // .success()
203+ // .stdout(predicate::str::is_empty().not());
204+ // }
205205}
0 commit comments