Skip to content

Commit f849113

Browse files
authored
Merge pull request #78 from mgeisler/handle-toml-test-output
markdown_deps: handle test output from toml 0.5.3
2 parents 4c00ed8 + 33dc77f commit f849113

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/markdown_deps.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,11 @@ mod tests {
276276
let block = "[dependencies]\n\
277277
foobar = 1.5.8";
278278
let request = extract_version_request("foobar", block);
279-
assert_eq!(
280-
request.unwrap_err(),
281-
"TOML parse error: expected newline, found a period at line 2"
282-
);
279+
// toml 0.5.3 returns "found a period at line 2 column 13.
280+
// Update the test when we bump the toml crate dependency.
281+
assert!(request
282+
.unwrap_err()
283+
.contains("TOML parse error: expected newline, found a period at line 2"));
283284
}
284285

285286
#[test]

0 commit comments

Comments
 (0)