Skip to content

Commit

Permalink
Add more tests to imports_granularity_one
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna committed Mar 20, 2021
1 parent e2d9199 commit 3b92ef9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/source/imports_granularity_one.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,25 @@ use b::{
ba,
bb::{self, bba},
};

use crate::a;
use crate::b::ba;
use c::ca;

use super::a;
use c::ca;
use super::b::ba;

use crate::a;
use super::b;
use c::{self, ca};

use a::{
// some comment
aa::{aaa, aab},
ab,
// another comment
ac::aca,
};
use b as x;
use a::ad::ada;
26 changes: 26 additions & 0 deletions tests/target/imports_granularity_one.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,29 @@ use {
bb::{self, bba},
},
};

use {
crate::{a, b::ba},
c::ca,
};

use {
super::{a, b::ba},
c::ca,
};

use {
super::b,
crate::a,
c::{self, ca},
};

use {
a::{
aa::{aaa, aab},
ab,
ac::aca,
ad::ada,
},
b as x,
};

0 comments on commit 3b92ef9

Please sign in to comment.