Update tests.
This commit is contained in:
@@ -125,7 +125,8 @@ mod tests {
|
||||
fn test_0104754350() {
|
||||
let document = include_str!("../../fixtures/hitta/0104754350.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"Ok:
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Ok:
|
||||
messages: []
|
||||
history:
|
||||
- 42 andra har rapporterat detta nummer
|
||||
@@ -245,14 +246,15 @@ mod tests {
|
||||
- datetime:
|
||||
DateTime: "2018-06-26T12:59:33Z"
|
||||
title: ~
|
||||
message: Säljare Folksam"###);
|
||||
message: Säljare Folksam"###;
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_0313908905() {
|
||||
let document = include_str!("../../fixtures/hitta/0313908905.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"Ok:
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Ok:
|
||||
messages: []
|
||||
history: []
|
||||
comments: []"###);
|
||||
@@ -262,7 +264,8 @@ mod tests {
|
||||
fn test_0702269893() {
|
||||
let document = include_str!("../../fixtures/hitta/0702269893.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"Ok:
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Ok:
|
||||
messages: []
|
||||
history:
|
||||
- Tre andra har också sökt på detta nummer
|
||||
@@ -273,7 +276,8 @@ mod tests {
|
||||
fn test_0726443387() {
|
||||
let document = include_str!("../../fixtures/hitta/0726443387.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"Ok:
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Ok:
|
||||
messages: []
|
||||
history:
|
||||
- 1299 andra har också sökt på detta nummer
|
||||
@@ -284,7 +288,8 @@ mod tests {
|
||||
fn test_0751793426() {
|
||||
let document = include_str!("../../fixtures/hitta/0751793426.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"Ok:
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Ok:
|
||||
messages: []
|
||||
history: []
|
||||
comments: []"###);
|
||||
@@ -294,7 +299,8 @@ mod tests {
|
||||
fn test_0751793483() {
|
||||
let document = include_str!("../../fixtures/hitta/0751793483.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"Ok:
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Ok:
|
||||
messages: []
|
||||
history: []
|
||||
comments: []"###);
|
||||
@@ -304,7 +310,8 @@ mod tests {
|
||||
fn test_0751793499() {
|
||||
let document = include_str!("../../fixtures/hitta/0751793499.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"Ok:
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Ok:
|
||||
messages: []
|
||||
history: []
|
||||
comments: []"###);
|
||||
@@ -314,13 +321,15 @@ mod tests {
|
||||
fn test_0701807618() {
|
||||
let document = include_str!("../../fixtures/hitta/0701807618.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @"Err: ~");
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Err: ~"###);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_0546780862() {
|
||||
let document = include_str!("../../fixtures/hitta/0546780862.html");
|
||||
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @"Err: ~");
|
||||
assert_yaml_snapshot_matches!(from_html(&document), @r###"---
|
||||
Err: ~"###);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user