Move test to test module

pull/924/head
Nehliin 3 years ago committed by Blaž Hrastnik
parent fbba47fbc0
commit f133d80e70

@ -654,8 +654,11 @@ pub fn merge_keys(mut config: Config) -> Config {
config
}
#[test]
fn merge_partial_keys() {
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn merge_partial_keys() {
let config = Config {
keys: Keymaps(hashmap! {
Mode::Normal => Keymap::new(
@ -713,4 +716,5 @@ fn merge_partial_keys() {
assert!(merged_config.keys.0.get(&Mode::Normal).unwrap().len() > 1);
assert!(merged_config.keys.0.get(&Mode::Insert).unwrap().len() > 0);
}
}

Loading…
Cancel
Save