diff --git a/codegen/src/test/function.rs b/codegen/src/test/function.rs index 7e22ea88..a8ded0c0 100644 --- a/codegen/src/test/function.rs +++ b/codegen/src/test/function.rs @@ -245,6 +245,8 @@ mod generate_tests { false } }); + eprintln!("actual != expected, diverge at char {}", counter); + /* let (actual_diff, expected_diff) = { let mut actual_diff = String::new(); let mut expected_diff = String::new(); @@ -254,11 +256,12 @@ mod generate_tests { } (actual_diff, expected_diff) }; - eprintln!("actual != expected, diverge at char {}", counter); eprintln!(" actual: {}", actual_diff); eprintln!("expected: {}", expected_diff); assert!(false); + */ } + assert_eq!(actual, expected); } #[test] diff --git a/codegen/src/test/module.rs b/codegen/src/test/module.rs index 5e9b5433..6743b6db 100644 --- a/codegen/src/test/module.rs +++ b/codegen/src/test/module.rs @@ -226,6 +226,8 @@ mod generate_tests { false } }); + eprintln!("actual != expected, diverge at char {}", counter); + /* let (actual_diff, expected_diff) = { let mut actual_diff = String::new(); let mut expected_diff = String::new(); @@ -235,12 +237,12 @@ mod generate_tests { } (actual_diff, expected_diff) }; - eprintln!("actual != expected, diverge at char {}", counter); eprintln!(" actual: {}", actual_diff); eprintln!("expected: {}", expected_diff); assert!(false); + */ } - //assert_eq!(actual, expected); + assert_eq!(actual, expected); } #[test]