Browse Source

rustfmt 0.9 style

Michael Mächtel 8 years ago
parent
commit
a80a213a49
1 changed files with 15 additions and 3 deletions
  1. 15
    3
      hw2/task2/tests/task2.rs

+ 15
- 3
hw2/task2/tests/task2.rs View File

4
 
4
 
5
 #[test]
5
 #[test]
6
 fn test_parse_config_1() {
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
     let c = Config {
12
     let c = Config {
9
         search: 'e',
13
         search: 'e',
10
         line: "Numero Due".to_string(),
14
         line: "Numero Due".to_string(),
15
 #[test]
19
 #[test]
16
 #[should_panic]
20
 #[should_panic]
17
 fn test_parse_config_2() {
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
     let c = Config {
27
     let c = Config {
20
         search: 'e',
28
         search: 'e',
21
         line: "Numero Due".to_string(),
29
         line: "Numero Due".to_string(),
25
 
33
 
26
 #[test]
34
 #[test]
27
 fn test_parse_config_3() {
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
     let c = Config {
41
     let c = Config {
30
         search: '0',
42
         search: '0',
31
         line: "0".to_string(),
43
         line: "0".to_string(),

Loading…
Cancel
Save