Skip to content

Commit ce5efaf

Browse files
committed
update tests
1 parent f7415bc commit ce5efaf

File tree

4 files changed

+82
-60
lines changed

4 files changed

+82
-60
lines changed

Diff for: tests/target/import-fencepost-length.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
use aaaaaaaaaaaaaaa::bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
2-
use aaaaaaaaaaaaaaa::{bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccccccccccccccc, dddddddd};
3-
use aaaaaaaaaaaaaaa::{bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccccccccccccccc,
4-
ddddddddd};
2+
use aaaaaaaaaaaaaaa::{
3+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccccccccccccccc, dddddddd,
4+
};
5+
use aaaaaaaaaaaaaaa::{
6+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccccccccccccccc, ddddddddd,
7+
};

Diff for: tests/target/imports.rs

+46-31
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44
// Imports.
55

66
// Long import.
7-
use exceedingly::loooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{ItemA,
8-
ItemB};
9-
use exceedingly::looooooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{ItemA,
10-
ItemB};
7+
use exceedingly::loooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{
8+
ItemA, ItemB,
9+
};
10+
use exceedingly::looooooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{
11+
ItemA, ItemB,
12+
};
1113
use syntax::ast::{ItemDefaultImpl, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic};
1214

13-
use list::{// Another item
14-
AnotherItem, // Another Comment
15-
// Last Item
16-
LastItem,
17-
// Some item
18-
SomeItem /* Comment */};
15+
use list::{
16+
// Another item
17+
AnotherItem, // Another Comment
18+
// Last Item
19+
LastItem,
20+
// Some item
21+
SomeItem, /* Comment */
22+
};
1923

2024
use test::{/* A */ self /* B */, Other /* C */};
2125

@@ -28,11 +32,14 @@ use std::io;
2832
use std::io;
2933

3034
mod Foo {
31-
pub use syntax::ast::{ItemDefaultImpl, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic};
35+
pub use syntax::ast::{
36+
ItemDefaultImpl, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic,
37+
};
3238

3339
mod Foo2 {
34-
pub use syntax::ast::{self, ItemDefaultImpl, ItemForeignMod, ItemImpl, ItemMac, ItemMod,
35-
ItemStatic};
40+
pub use syntax::ast::{
41+
self, ItemDefaultImpl, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic,
42+
};
3643
}
3744
}
3845

@@ -72,24 +79,32 @@ use foo::issue_1356::*;
7279
use self::unix::{};
7380

7481
// nested imports
75-
use foo::{a,
76-
b,
77-
bar::{baz,
78-
foo::{a, b, cxxxxxxxxxxxxx, yyyyyyyyyyyyyy, zzzzzzzzzzzzzzzz},
79-
qux,
80-
xxxxxxxxxxx,
81-
yyyyyyyyyyyyy,
82-
zzzzzzzzzzzzzzzz},
83-
boo,
84-
c};
85-
86-
use fooo::{baar::foobar::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
87-
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz},
88-
bar,
89-
bar::*,
90-
x,
91-
y,
92-
z};
82+
use foo::{
83+
a,
84+
b,
85+
bar::{
86+
baz,
87+
foo::{a, b, cxxxxxxxxxxxxx, yyyyyyyyyyyyyy, zzzzzzzzzzzzzzzz},
88+
qux,
89+
xxxxxxxxxxx,
90+
yyyyyyyyyyyyy,
91+
zzzzzzzzzzzzzzzz,
92+
},
93+
boo,
94+
c,
95+
};
96+
97+
use fooo::{
98+
baar::foobar::{
99+
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
100+
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,
101+
},
102+
bar,
103+
bar::*,
104+
x,
105+
y,
106+
z,
107+
};
93108

94109
// nested imports with a single sub-tree.
95110
use a::b::c::d;

Diff for: tests/target/issue-2111.rs

+25-23
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
// rustfmt-normalize_comments: false
22

33
// An import with single line comments.
4-
use super::{DelayChoice,
5-
Destinations,
6-
Holding,
7-
LodaModel,
8-
MethodDescription,
9-
ModelBehaviour,
10-
ModelEdges,
11-
ModelProperties,
12-
ModelRequestGraph,
13-
ModelSelector,
14-
RequestDescription,
15-
StringMap,
16-
Switch,
17-
// ModelMetaData,
18-
// Generated,
19-
// SecondsString,
20-
// DateString,
21-
// ModelConfiguration,
22-
// ModelRequests,
23-
// RestResponse,
24-
// RestResponseCode,
25-
// UniformHolding
26-
SCHEMA_VERSIONS};
4+
use super::{
5+
DelayChoice,
6+
Destinations,
7+
Holding,
8+
LodaModel,
9+
MethodDescription,
10+
ModelBehaviour,
11+
ModelEdges,
12+
ModelProperties,
13+
ModelRequestGraph,
14+
ModelSelector,
15+
RequestDescription,
16+
StringMap,
17+
Switch,
18+
// ModelMetaData,
19+
// Generated,
20+
// SecondsString,
21+
// DateString,
22+
// ModelConfiguration,
23+
// ModelRequests,
24+
// RestResponse,
25+
// RestResponseCode,
26+
// UniformHolding
27+
SCHEMA_VERSIONS,
28+
};

Diff for: tests/target/multiple.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ extern crate foo;
1616
extern crate foo;
1717

1818
use std::cell::*;
19-
use std::{self, any, ascii, borrow, borrow, borrow, borrow, borrow, borrow, borrow, borrow,
20-
borrow, borrow, borrow, boxed, boxed, boxed, boxed, boxed, boxed, boxed, boxed, boxed,
21-
boxed, char, char, char, char, char, char, char, char, char, char};
19+
use std::{
20+
self, any, ascii, borrow, borrow, borrow, borrow, borrow, borrow, borrow, borrow, borrow,
21+
borrow, borrow, boxed, boxed, boxed, boxed, boxed, boxed, boxed, boxed, boxed, boxed, char,
22+
char, char, char, char, char, char, char, char, char,
23+
};
2224

2325
mod doc;
2426
mod other;

0 commit comments

Comments
 (0)