Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
use crate::{load_language, SUPPORTED_LANGUAGES};
|
||||
|
||||
/// Validate that every supported language can be loaded successfully.
|
||||
/// This catches invalid node types, syntax errors, and other issues in .scm query files
|
||||
/// (highlights, indents, identifiers) that would otherwise only surface at runtime.
|
||||
#[test]
|
||||
fn all_supported_languages_load_successfully() {
|
||||
let failures: Vec<_> = SUPPORTED_LANGUAGES
|
||||
.iter()
|
||||
.filter(|lang| load_language(lang).is_none())
|
||||
.collect();
|
||||
|
||||
assert!(
|
||||
failures.is_empty(),
|
||||
"The following languages failed to load:\n{}",
|
||||
failures
|
||||
.iter()
|
||||
.map(|lang| format!(" - {lang}"))
|
||||
.collect::<Vec<_>>()
|
||||
.join("\n")
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user