Update tests.

This commit is contained in:
2019-03-13 09:48:10 +01:00
parent 92323e38f7
commit 51fe50399d

View File

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