Merge pull request #4451 from roc-lang/fix-mono-tests

Consolidate mono test behavior in debug and release modes
This commit is contained in:
Ayaz 2022-11-03 22:11:43 -05:00 committed by GitHub
commit 0b6b16563f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
61 changed files with 1303 additions and 1319 deletions

View file

@ -143,7 +143,6 @@ fn compiles_to_ir(test_name: &str, src: &str) {
verify_procedures(test_name, layout_interner, procedures, main_fn_symbol);
}
#[cfg(debug_assertions)]
fn verify_procedures<'a>(
test_name: &str,
interner: STLayoutInterner<'a>,
@ -201,19 +200,6 @@ fn verify_procedures<'a>(
}
}
// NOTE because the Show instance of module names is different in --release mode,
// these tests would all fail. In the future, when we do interesting optimizations,
// we'll likely want some tests for --release too.
#[cfg(not(debug_assertions))]
fn verify_procedures(
_expected: &str,
_interner: STLayoutInterner<'_>,
_procedures: MutMap<(Symbol, ProcLayout<'_>), Proc<'_>>,
_main_fn_symbol: Symbol,
) {
// Do nothing
}
#[mono_test]
fn ir_int_literal() {
r#"