Skip to content

Commit

Permalink
cxx-qt-gen: Fix diff order
Browse files Browse the repository at this point in the history
Now new generated code is marked green and removed code is marked red.
  • Loading branch information
LeonMatthesKDAB authored and ahayzen-kdab committed Jun 7, 2023
1 parent 23eaa42 commit 0d39c0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cxx-qt-gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ mod tests {
let rust = sanitize_code(format_rs_source(&write_rust(&generated_rust).to_string()));

if !update_expected(test_name, &rust, &header, &source) {
assert_str_eq!(header, sanitize_code(expected_cpp_header.to_owned()));
assert_str_eq!(source, sanitize_code(expected_cpp_source.to_owned()));
assert_str_eq!(rust, sanitize_code(expected_rust_output.to_owned()));
assert_str_eq!(sanitize_code(expected_cpp_header.to_owned()), header);
assert_str_eq!(sanitize_code(expected_cpp_source.to_owned()), source);
assert_str_eq!(sanitize_code(expected_rust_output.to_owned()), rust);
}
}

Expand Down

0 comments on commit 0d39c0f

Please sign in to comment.