From e09b0f4eff1ec3ec943788c7ea205e3161de94cd Mon Sep 17 00:00:00 2001 From: Brian Dawn Date: Sat, 5 Jun 2021 12:12:59 -0500 Subject: [PATCH] Add a smoke test around loading runtime files. This test makes sure we can read some amount of data from the runtime folder. --- helix-core/src/syntax.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index e94c154d..929dae11 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -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()) +}