aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/formatting.rs
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2019-05-08 17:45:39 -0700
committerEric Huss <eric@huss.org>2019-05-08 17:45:39 -0700
commit0fca4dd2d30a2044af454cf55211e67cf76f333c (patch)
tree6a41d4f9ce2fba536d02325fff70076f00910a8d /test-suite/tests/formatting.rs
parent6c162e6562c3e432bf04c82a3d1d789d80761a86 (diff)
downloadmilf-rs-0fca4dd2d30a2044af454cf55211e67cf76f333c.tar.gz
milf-rs-0fca4dd2d30a2044af454cf55211e67cf76f333c.zip
cargo fmt
Diffstat (limited to 'test-suite/tests/formatting.rs')
-rw-r--r--test-suite/tests/formatting.rs44
1 files changed, 23 insertions, 21 deletions
diff --git a/test-suite/tests/formatting.rs b/test-suite/tests/formatting.rs
index 4ba1418..8e15ec2 100644
--- a/test-suite/tests/formatting.rs
+++ b/test-suite/tests/formatting.rs
@@ -24,31 +24,33 @@ struct TwoUsers {
#[test]
fn no_unnecessary_newlines_array() {
assert!(!to_string(&Users {
- user: vec![
- User {
- name: "John".to_string(),
- surname: "Doe".to_string(),
- },
- User {
- name: "Jane".to_string(),
- surname: "Dough".to_string(),
- },
- ],
- }).unwrap()
- .starts_with("\n"));
-}
-
-#[test]
-fn no_unnecessary_newlines_table() {
- assert!(!to_string(&TwoUsers {
- user0: User {
+ user: vec![
+ User {
name: "John".to_string(),
surname: "Doe".to_string(),
},
- user1: User {
+ User {
name: "Jane".to_string(),
surname: "Dough".to_string(),
},
- }).unwrap()
- .starts_with("\n"));
+ ],
+ })
+ .unwrap()
+ .starts_with("\n"));
+}
+
+#[test]
+fn no_unnecessary_newlines_table() {
+ assert!(!to_string(&TwoUsers {
+ user0: User {
+ name: "John".to_string(),
+ surname: "Doe".to_string(),
+ },
+ user1: User {
+ name: "Jane".to_string(),
+ surname: "Dough".to_string(),
+ },
+ })
+ .unwrap()
+ .starts_with("\n"));
}