Tests infrastructure for plume-models (#302)

First step for testing `plume-models`. I only added one test for the moment, but we should add more in future PRs.
This commit is contained in:
Baptiste Gelez
2018-11-01 22:23:38 +01:00
committed by GitHub
parent 1bcde7fb86
commit 6b2d9d4221
5 changed files with 119 additions and 9 deletions
+2 -2
View File
@@ -161,7 +161,7 @@ mod tests {
];
for (md, mentions) in tests {
assert_eq!(md_to_html(md).1, mentions.into_iter().map(|s| s.to_string()).collect::<Vec<String>>());
assert_eq!(md_to_html(md).1, mentions.into_iter().map(|s| s.to_string()).collect::<HashSet<String>>());
}
}
@@ -180,7 +180,7 @@ mod tests {
];
for (md, mentions) in tests {
assert_eq!(md_to_html(md).2, mentions.into_iter().map(|s| s.to_string()).collect::<Vec<String>>());
assert_eq!(md_to_html(md).2, mentions.into_iter().map(|s| s.to_string()).collect::<HashSet<String>>());
}
}
}