on master help sign in
Add a smoke test around loading runtime files.

This test makes sure we can read some amount of data from the runtime folder.

commite09b0f4eff1ec3ec943788c7ea205e3161de94cd authorBrian Dawn <brian.t.dawn@gmail.com> dateSat 5 Jun 2021, 12:12 (5 years ago) parentf3db12e
1 file changed+7
helix-core/src/syntax.rs+7
helix-core/src/syntax.rs+7
@@ -1717,3 +1717,10 @@ fn test_input_edits() {
17171717 }]
17181718 );
17191719}
1720+
1721+#[test]
1722+fn test_load_runtime_file() {
1723+ // Test to make sure we can load some data from the runtime directory.
1724+ let contents = load_runtime_file("rust", "indents.toml").unwrap();
1725+ assert!(!contents.is_empty())
1726+}