aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dawn2021-06-05 17:12:59 +0000
committerBlaž Hrastnik2021-06-06 01:49:17 +0000
commite09b0f4eff1ec3ec943788c7ea205e3161de94cd (patch)
treec4f7bc792baafb2d24c3d8a6d4d52a901377a78e
parentf3db12e240868796257b9e57c5e39eb404723985 (diff)
Add a smoke test around loading runtime files.
This test makes sure we can read some amount of data from the runtime folder.
-rw-r--r--helix-core/src/syntax.rs7
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())
+}