From c68ab9347ee7d9bf8c93dfb444b9ec5ec0ccc43f Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Sat, 7 Oct 2023 23:35:02 +0300 Subject: improve bootstrap tests structure Signed-off-by: onur-ozkan --- src/bootstrap/setup/tests.rs | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/bootstrap/setup/tests.rs (limited to 'src/bootstrap/setup') diff --git a/src/bootstrap/setup/tests.rs b/src/bootstrap/setup/tests.rs deleted file mode 100644 index 0fe6e4a4644..00000000000 --- a/src/bootstrap/setup/tests.rs +++ /dev/null @@ -1,14 +0,0 @@ -use super::{RUST_ANALYZER_SETTINGS, SETTINGS_HASHES}; -use sha2::Digest; - -#[test] -fn check_matching_settings_hash() { - let mut hasher = sha2::Sha256::new(); - hasher.update(&RUST_ANALYZER_SETTINGS); - let hash = hex::encode(hasher.finalize().as_slice()); - assert_eq!( - &hash, - SETTINGS_HASHES.last().unwrap(), - "Update `SETTINGS_HASHES` with the new hash of `src/etc/rust_analyzer_settings.json`" - ); -} -- cgit 1.4.1-3-g733a5