From 5e4ba9c0163cdf6b6b26eb6a7d934bdb47444eef Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 17 Sep 2020 11:37:23 +0800 Subject: [PATCH] Swich back to assert_eq! for token stream tests. --- codegen/src/test/function.rs | 5 ++++- codegen/src/test/module.rs | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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]