|
|
@@ -4,7 +4,11 @@ use task2::Config;
|
|
4
|
4
|
|
|
5
|
5
|
#[test]
|
|
6
|
6
|
fn test_parse_config_1() {
|
|
7
|
|
- let a = vec!["Not interested".to_string(), "e".to_string(), "Numero Due".to_string()];
|
|
|
7
|
+ let a = vec![
|
|
|
8
|
+ "Not interested".to_string(),
|
|
|
9
|
+ "e".to_string(),
|
|
|
10
|
+ "Numero Due".to_string(),
|
|
|
11
|
+ ];
|
|
8
|
12
|
let c = Config {
|
|
9
|
13
|
search: 'e',
|
|
10
|
14
|
line: "Numero Due".to_string(),
|
|
|
@@ -15,7 +19,11 @@ fn test_parse_config_1() {
|
|
15
|
19
|
#[test]
|
|
16
|
20
|
#[should_panic]
|
|
17
|
21
|
fn test_parse_config_2() {
|
|
18
|
|
- let a = vec!["Not interested".to_string(), "x".to_string(), "Numero Due".to_string()];
|
|
|
22
|
+ let a = vec![
|
|
|
23
|
+ "Not interested".to_string(),
|
|
|
24
|
+ "x".to_string(),
|
|
|
25
|
+ "Numero Due".to_string(),
|
|
|
26
|
+ ];
|
|
19
|
27
|
let c = Config {
|
|
20
|
28
|
search: 'e',
|
|
21
|
29
|
line: "Numero Due".to_string(),
|
|
|
@@ -25,7 +33,11 @@ fn test_parse_config_2() {
|
|
25
|
33
|
|
|
26
|
34
|
#[test]
|
|
27
|
35
|
fn test_parse_config_3() {
|
|
28
|
|
- let a = vec!["Not interested".to_string(), "0".to_string(), "0".to_string()];
|
|
|
36
|
+ let a = vec![
|
|
|
37
|
+ "Not interested".to_string(),
|
|
|
38
|
+ "0".to_string(),
|
|
|
39
|
+ "0".to_string(),
|
|
|
40
|
+ ];
|
|
29
|
41
|
let c = Config {
|
|
30
|
42
|
search: '0',
|
|
31
|
43
|
line: "0".to_string(),
|