Skip to content

Commit

Permalink
Add tests for struct variant field in search
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 30, 2020
1 parent 05c6f32 commit 862af62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/rustdoc-js/struct-like-variant.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const QUERY = 'name';

const EXPECTED = {
'others': [
{ 'path': 'struct_like_variant::Enum::Bar::name', 'name': 'l' },
],
};
5 changes: 5 additions & 0 deletions src/test/rustdoc-js/struct-like-variant.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#![crate_name = "struct_like_variant"]

pub enum Enum {
Bar { name: String }
}

0 comments on commit 862af62

Please sign in to comment.