]> git.lizzy.rs Git - rust.git/commitdiff
Update tests
authortopecongiro <seuchida@gmail.com>
Thu, 29 Jun 2017 02:01:22 +0000 (11:01 +0900)
committertopecongiro <seuchida@gmail.com>
Thu, 29 Jun 2017 02:01:22 +0000 (11:01 +0900)
tests/target/expr-block.rs
tests/target/expr.rs
tests/target/tuple.rs

index bbefa62b30115de81968124ef19b6b3382b5988c..953935baec985690df9a53aaf8dd4ec2bc0185e3 100644 (file)
@@ -96,14 +96,12 @@ fn arrays() {
         1,
     ];
 
-    let a = WeightedChoice::new(
-        &mut [
-            Weighted { weight: x, item: 0 },
-            Weighted { weight: 1, item: 1 },
-            Weighted { weight: x, item: 2 },
-            Weighted { weight: 1, item: 3 },
-        ],
-    );
+    let a = WeightedChoice::new(&mut [
+        Weighted { weight: x, item: 0 },
+        Weighted { weight: 1, item: 1 },
+        Weighted { weight: x, item: 2 },
+        Weighted { weight: 1, item: 3 },
+    ]);
 
     let z = [
         xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
index b650904071430c7340d2255f91c734e293cef8ad..aad9f6d1b5fb0ae270217386c47a95b686709858 100644 (file)
@@ -224,26 +224,24 @@ fn arrays() {
         1,
     ];
 
-    let a = WeightedChoice::new(
-        &mut [
-            Weighted {
-                weightweight: x,
-                item: 0,
-            },
-            Weighted {
-                weightweight: 1,
-                item: 1,
-            },
-            Weighted {
-                weightweight: x,
-                item: 2,
-            },
-            Weighted {
-                weightweight: 1,
-                item: 3,
-            },
-        ],
-    );
+    let a = WeightedChoice::new(&mut [
+        Weighted {
+            weightweight: x,
+            item: 0,
+        },
+        Weighted {
+            weightweight: 1,
+            item: 1,
+        },
+        Weighted {
+            weightweight: x,
+            item: 2,
+        },
+        Weighted {
+            weightweight: 1,
+            item: 3,
+        },
+    ]);
 
     let z = [
         xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
index 0b82e4821364868f4d125b3210da873ca54df61b..954fe011f141d8cd61881a686a9f0f8821ae64e9 100644 (file)
@@ -62,20 +62,18 @@ fn issue550() {
 
 fn issue775() {
     if indent {
-        let a = mk_object(
-            &[
-                ("a".to_string(), Boolean(true)),
-                (
-                    "b".to_string(),
-                    Array(vec![
-                        mk_object(
-                            &[("c".to_string(), String("\x0c\r".to_string()))],
-                        ),
-                        mk_object(&[("d".to_string(), String("".to_string()))]),
-                    ]),
-                ),
-            ],
-        );
+        let a = mk_object(&[
+            ("a".to_string(), Boolean(true)),
+            (
+                "b".to_string(),
+                Array(vec![
+                    mk_object(
+                        &[("c".to_string(), String("\x0c\r".to_string()))],
+                    ),
+                    mk_object(&[("d".to_string(), String("".to_string()))]),
+                ]),
+            ),
+        ]);
     }
 }