RUST-Test
The Test Library
1 | assert_cmd |
assert_cmd库
Uses the assert_cmd crate to test the output of a binary called “hello”. The test case verifies that executing the “hello” binary is successful and that the stdout (standard output) matches the expected string “Hello, world!\n”.
1 | use assert_cmd::Command; |
评论