1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-06-14 12:26:34 +01:00

Add test: all_fixed_builtin_mappings_can_compile

This commit is contained in:
cyqsimon
2023-11-06 10:48:28 +08:00
parent daf33709a0
commit b48bda21a3

@ -174,4 +174,13 @@ mod tests {
Some(MappingTarget::MapToUnknown)
);
}
#[test]
fn all_fixed_builtin_mappings_can_compile() {
let map = SyntaxMapping::new();
// collect call evaluates all lazy closures
// fixed builtin mappings will panic if they fail to compile
let _mappings = map.builtin_mappings().collect::<Vec<_>>();
}
}