changelog: test parsing
This commit is contained in:
parent
604ee570a1
commit
730de12a63
|
@ -78,6 +78,9 @@ where
|
|||
mod tests {
|
||||
#[test]
|
||||
fn read_changelog() {
|
||||
assert!(super::read("CHANGELOG.md".into(), "0.1.0".into()).is_ok());
|
||||
let res = super::read("testdata/basic.md".into(), "0.1.0".into());
|
||||
assert!(res.is_ok());
|
||||
let delta = res.unwrap();
|
||||
assert_eq!(delta, "Hi there this is a test\\!\n### ADDED\n - something\n")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
## 0.1.0
|
||||
Hi there this is a test!
|
||||
### ADDED
|
||||
- something
|
Loading…
Reference in New Issue