Codebase list rust-stfu8 / c11072c
Markdown: Patch dev dependency "difference" from 0.4 to 2.0.0 Christopher Hoskin 2 years ago
3 changed file(s) with 54 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
22 * Package markdown 0.3.0 from crates.io using debcargo 2.4.4
33 * Fill in copyright
44 * Add / correct information in control
5 * Patch dev dependency "difference" from 0.4 to 2.0.0
56
6 -- Christopher Hoskin <mans0954@debian.org> Wed, 26 May 2021 07:27:51 +0100
7 -- Christopher Hoskin <mans0954@debian.org> Wed, 26 May 2021 08:39:24 +0100
0 Description: Update dev dependency difference from 0.4 to 2.0.0
1 Author: Christopher Hoskin <mans0954@debian.org>
2 Forwarded: https://github.com/johannhof/markdown.rs/pull/40
3 Last-Update: 2021-05-26
4 --- a/Cargo.toml
5 +++ b/Cargo.toml
6 @@ -33,7 +33,7 @@
7 [dependencies.regex]
8 version = "1"
9 [dev-dependencies.difference]
10 -version = "0.4"
11 +version = "2.0.0"
12
13 [features]
14 default = []
15 --- a/tests/lib.rs
16 +++ b/tests/lib.rs
17 @@ -1,4 +1,5 @@
18 extern crate markdown;
19 +#[macro_use(assert_diff)]
20 extern crate difference;
21
22 mod fixtures;
23 --- a/tests/fixtures/mod.rs
24 +++ b/tests/fixtures/mod.rs
25 @@ -2,7 +2,6 @@
26 use std::fs::File;
27 use std::io::Read;
28 use markdown;
29 -use difference;
30
31 fn compare(name: &str) {
32 let html = format!("tests/fixtures/docs-maruku-unittest/{}.html", name);
33 @@ -15,7 +14,7 @@
34 File::open(md).unwrap().read_to_string(&mut tokens).unwrap();
35 println!("{:?}", markdown::tokenize(&tokens));
36
37 - difference::assert_diff(&comp, &markdown::file_to_html(md).unwrap(), " ", 0);
38 + assert_diff!(&comp, &markdown::file_to_html(md).unwrap(), " ", 0);
39 }
40
41 fn roundtrip(name: &str) {
42 @@ -34,7 +33,7 @@
43
44 println!("BEGIN\n{}\nEND", out);
45
46 - difference::assert_diff(&comp, &markdown::to_html(&out), " ", 0);
47 + assert_diff!(&comp, &markdown::to_html(&out), " ", 0);
48 }
49
50 #[test]