Skip to content

Commit f1728d1

Browse files
committed
test: polishing
1 parent afd5e3a commit f1728d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/demo_test.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1+
use std::process::Command;
2+
13
#[test]
24
fn test_demo() {
35
println!("demo test");
46
}
7+
8+
#[test]
9+
fn test_command() {
10+
let output = Command::new("java")
11+
.arg("-version")
12+
.output()
13+
.expect("Failed to execute command");
14+
String::from_utf8(output.stderr).unwrap();
15+
}

0 commit comments

Comments
 (0)