Skip to content

Commit 862af62

Browse files
Add tests for struct variant field in search
1 parent 05c6f32 commit 862af62

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const QUERY = 'name';
2+
3+
const EXPECTED = {
4+
'others': [
5+
{ 'path': 'struct_like_variant::Enum::Bar::name', 'name': 'l' },
6+
],
7+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![crate_name = "struct_like_variant"]
2+
3+
pub enum Enum {
4+
Bar { name: String }
5+
}

0 commit comments

Comments
 (0)