Skip to content

Commit 1ded013

Browse files
committed
tests: One test of an inline table
1 parent fe807ed commit 1ded013

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,16 @@ mod tests {
439439
Ok(Some(FoundCrate::Name(name))) if name == "my_crate"
440440
}
441441

442+
// forbidding toml_edit::Item::as_table ought to mean this is OK, but let's have a test too
443+
create_test! {
444+
deps_with_crate_inline_table,
445+
r#"
446+
dependencies = { my_crate = "0.1" }
447+
"#,
448+
"",
449+
Ok(Some(FoundCrate::Name(name))) if name == "my_crate"
450+
}
451+
442452
create_test! {
443453
dev_deps_with_crate,
444454
r#"

0 commit comments

Comments
 (0)