aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5ee5b8e..f8d0032 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -139,5 +139,23 @@ r#"- description: >-
#[test]
fn inserts_yaml_hash() {
+ let expected = TestRecord {
+ id: 1,
+ count: 255,
+ weight: 86.6,
+ description: "Some text content.".to_owned(),
+ };
+
+ let yaml_str = format!(
+r#"description: {}
+count: {}
+weight: {}
+"#,
+ expected.description,
+ expected.count,
+ expected.weight,
+ );
+
+ test_yaml_insert(&yaml_str, &vec![expected]);
}
}