Skip to content

Commit

Permalink
#42 test for literals in fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
la10736 committed Oct 24, 2019
1 parent 60a212f commit 0ba82ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/parse/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ mod should {
assert_eq!(expected, data);
}

#[test]
fn some_literals() {
let args_expressions = literal_expressions_str();
let fixture = parse_fixture(&format!("my_fixture({})", args_expressions.join(", ")));
let args = fixture.data.fixtures().next().unwrap().positional.clone();

assert_eq!(to_args!(args_expressions), args);
}

#[test]
fn empty_fixtures() {
let data = parse_fixture(r#"::trace::no_trace(some)"#);
Expand Down

0 comments on commit 0ba82ec

Please sign in to comment.