test: init completion package tests (#672)

This commit is contained in:
Myriad-Dreamin 2024-10-14 13:15:27 +08:00 committed by GitHub
parent 28f2645c40
commit 7bc30bf2fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 535 additions and 9 deletions

View file

@ -142,9 +142,6 @@ pub fn run_with_sources<T>(source: &str, f: impl FnOnce(&mut LspUniverse, PathBu
.unwrap();
let sources = source.split("-----");
let pw = root.join(Path::new("/main.typ"));
world.map_shadow(&pw, Bytes::from_static(b"")).unwrap();
let mut last_pw = None;
for (i, source) in sources.enumerate() {
// find prelude