test: alloc 与 AllocMap 单测移入 regalloc 集成测试

This commit is contained in:
2026-09-15 20:25:46 +00:00
parent 2a2db136de
commit 3986aec50e
3 changed files with 148 additions and 142 deletions
-15
View File
@@ -70,18 +70,3 @@ impl Default for AllocMap {
Self::new()
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn alloc_map_new_is_empty() {
let m = AllocMap::new();
assert!(m.map.is_empty());
assert!(m.spills.is_empty());
assert_eq!(m.phys_peak, 0);
assert_eq!(m.arg_window_base, 254);
assert!(AllocMap::default().map.is_empty());
}
}