diff options
author | Brian Dawn | 2021-06-05 17:12:59 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-06 01:49:17 +0000 |
commit | e09b0f4eff1ec3ec943788c7ea205e3161de94cd (patch) | |
tree | c4f7bc792baafb2d24c3d8a6d4d52a901377a78e /helix-core/src | |
parent | f3db12e240868796257b9e57c5e39eb404723985 (diff) |
Add a smoke test around loading runtime files.
This test makes sure we can read some amount of data from the runtime folder.
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/syntax.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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()) +} |