Skip to content

Commit 3b92ef9

Browse files
committed
Add more tests to imports_granularity_one
1 parent e2d9199 commit 3b92ef9

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

tests/source/imports_granularity_one.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,25 @@ use b::{
3636
ba,
3737
bb::{self, bba},
3838
};
39+
40+
use crate::a;
41+
use crate::b::ba;
42+
use c::ca;
43+
44+
use super::a;
45+
use c::ca;
46+
use super::b::ba;
47+
48+
use crate::a;
49+
use super::b;
50+
use c::{self, ca};
51+
52+
use a::{
53+
// some comment
54+
aa::{aaa, aab},
55+
ab,
56+
// another comment
57+
ac::aca,
58+
};
59+
use b as x;
60+
use a::ad::ada;

tests/target/imports_granularity_one.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,29 @@ use {
5151
bb::{self, bba},
5252
},
5353
};
54+
55+
use {
56+
crate::{a, b::ba},
57+
c::ca,
58+
};
59+
60+
use {
61+
super::{a, b::ba},
62+
c::ca,
63+
};
64+
65+
use {
66+
super::b,
67+
crate::a,
68+
c::{self, ca},
69+
};
70+
71+
use {
72+
a::{
73+
aa::{aaa, aab},
74+
ab,
75+
ac::aca,
76+
ad::ada,
77+
},
78+
b as x,
79+
};

0 commit comments

Comments
 (0)