forked from rust-lang-ja/atcoder-rust-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_inputs.rs
47 lines (43 loc) · 1.02 KB
/
sample_inputs.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use cli_test_dir::*;
const BIN: &'static str = "./main";
#[test]
fn sample1() {
let testdir = TestDir::new(BIN, "");
let output = testdir
.cmd()
// change here
.output_with_stdin(r#" "#)
.tee_output()
.expect_success();
// change here
assert_eq!(output.stdout_str(), "\n");
assert!(output.stderr_str().is_empty());
}
#[test]
#[ignore]
fn sample2() {
let testdir = TestDir::new(BIN, "");
let output = testdir
.cmd()
// change here
.output_with_stdin(r#" "#)
.tee_output()
.expect_success();
// change here
assert_eq!(output.stdout_str(), "\n");
assert!(output.stderr_str().is_empty());
}
#[test]
#[ignore]
fn sample3() {
let testdir = TestDir::new(BIN, "");
let output = testdir
.cmd()
// change here
.output_with_stdin(r#" "#)
.tee_output()
.expect_success();
// change here
assert_eq!(output.stdout_str(), "\n");
assert!(output.stderr_str().is_empty());
}