Skip to content

Commit

Permalink
fix: use correct print
Browse files Browse the repository at this point in the history
  • Loading branch information
piragi committed Feb 18, 2022
1 parent 243da56 commit 7d95fc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions core/tests/backend/inline_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn test_render_html_valid_escaped_inline() {
let mut expected_html = format!("<p id='{}'>\\*23\\*3</p>", id);

let result = block.render_html();
assert!(result.is_ok(), "Cause: {}", result.unwrap_err());
assert!(result.is_ok(), "Cause: {:?}", result.unwrap_err());
assert_eq!(
expected_html,
result.unwrap(),
Expand All @@ -26,7 +26,7 @@ fn test_render_html_valid_escaped_inline() {
block.content = "\\ *italic*\\".to_string();
expected_html = format!("<p id='{}'>\\ <i>italic</i>\\</p>", id);
let result = block.render_html();
assert!(result.is_ok(), "Cause: {}", result.unwrap_err());
assert!(result.is_ok(), "Cause: {:?}", result.unwrap_err());
assert_eq!(
expected_html,
result.unwrap(),
Expand All @@ -37,7 +37,7 @@ fn test_render_html_valid_escaped_inline() {
expected_html = format!("<p id='{}'><b>\\*only bold\\*</b></p>", id);

let result = block.render_html();
assert!(result.is_ok(), "Cause: {}", result.unwrap_err());
assert!(result.is_ok(), "Cause: {:?}", result.unwrap_err());
assert_eq!(
expected_html,
result.unwrap(),
Expand Down
13 changes: 7 additions & 6 deletions core/tests/elements/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ fn test_ir_root_metadata_in_ir() {

assert!(
transaction.is_ok(),
"Cause: {:?}",
UmError::Ir(IrError {
tablename: "metadata".to_string(),
column: "-".to_string(),
message: "given metadata not found".to_string(),
})
//TODO: How to throw error?
// "Cause: {:?}",
// UmError::Ir(IrError {
// tablename: "metadata".to_string(),
// column: "-".to_string(),
// message: "given metadata not found".to_string(),
// })
);

let metadata_exists = middleend::entry_already_exists(&ir_metadata, &transaction.unwrap());
Expand Down

0 comments on commit 7d95fc6

Please sign in to comment.