Fix tests

This commit is contained in:
a2x 2024-08-15 11:31:17 +10:00
parent f84fb77ad6
commit f9447f7360
1 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,9 @@ mod tests {
} }
fn get_class_field_value(module_name: &str, class_name: &str, field_name: &str) -> Option<u64> { fn get_class_field_value(module_name: &str, class_name: &str, field_name: &str) -> Option<u64> {
let content = fs::read_to_string(format!("output/{}.json", module_name)).ok()?; let content =
fs::read_to_string(format!("output/{}.json", module_name.replace(".", "_"))).ok()?;
let value: Value = serde_json::from_str(&content).ok()?; let value: Value = serde_json::from_str(&content).ok()?;
value value