Add a smoke test around loading runtime files.

This test makes sure we can read some amount of data from the runtime folder.
This commit is contained in:
Brian Dawn 2021-06-05 12:12:59 -05:00 committed by Blaž Hrastnik
parent f3db12e240
commit e09b0f4eff

View file

@ -1717,3 +1717,10 @@ fn test_input_edits() {
}]
);
}
#[test]
fn test_load_runtime_file() {
// Test to make sure we can load some data from the runtime directory.
let contents = load_runtime_file("rust", "indents.toml").unwrap();
assert!(!contents.is_empty())
}