Skip to content

Commit

Permalink
[framework] output human readable debug in std::unit_test (#19632)
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka authored Sep 30, 2024
1 parent dd9c262 commit ff9e78f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public macro fun assert_ref_eq<$T>($t1: &$T, $t2: &$T) {
let t2 = $t2;
let res = t1 == t2;
if (!res) {
std::debug::print(&b"Assertion failed:");
std::debug::print(&b"Assertion failed:".to_string());
std::debug::print(t1);
std::debug::print(&b"!=");
std::debug::print(&b"!=".to_string());
std::debug::print(t2);
assert!(false);
}
Expand Down

0 comments on commit ff9e78f

Please sign in to comment.