Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Dec 2, 2024
1 parent 5002fc3 commit 737117b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ fn gemtext() {
{
let item = code_multiline.get(0).unwrap();
assert_eq!(item.alt.clone().unwrap(), "alt text");
assert_eq!(item.buffer.len(), 3);
assert_eq!(item.buffer.get(0).unwrap(), "multi");
assert_eq!(item.buffer.get(1).unwrap(), " preformatted line");
assert_eq!(item.value.lines().count(), 2);
assert_eq!(item.value.lines().nth(0).unwrap(), "multi");
assert_eq!(item.value.lines().nth(1).unwrap(), " preformatted line");
} // #1

{
let item = code_multiline.get(1).unwrap();
assert_eq!(item.alt.clone(), None);
assert_eq!(item.buffer.len(), 3);
assert_eq!(item.buffer.get(0).unwrap(), "alt-less");
assert_eq!(item.buffer.get(1).unwrap(), " preformatted line");
assert_eq!(item.value.lines().count(), 2);
assert_eq!(item.value.lines().nth(0).unwrap(), "alt-less");
assert_eq!(item.value.lines().nth(1).unwrap(), " preformatted line");
} // #2

// Validate headers
Expand Down

0 comments on commit 737117b

Please sign in to comment.