updated README and a bunch of other stuff
This commit is contained in:
@@ -48,14 +48,14 @@ fn test_get_module_hash() -> MizeResult<()> {
|
||||
toolchain_version = "rustc 1.78.0 (9b00956e5 2024-04-29)"
|
||||
"#;
|
||||
|
||||
instance.set_blocking("0/config/selector", ItemData::from_toml(&selector_toml)?)?;
|
||||
|
||||
let (hash, selector) = get_part_hash(&mut instance, "String", ItemData::new())?;
|
||||
// Pass selector fields as hash options (merges over defaults).
|
||||
let options = ItemData::from_toml(&selector_toml)?;
|
||||
let (hash, selector) = get_part_hash(&mut instance, "String", options)?;
|
||||
|
||||
println!("hash: {}", hash);
|
||||
println!("selector: {}", selector);
|
||||
|
||||
assert_eq!(hash, "e96edf60216688314efc263c1aa8d6ce".to_owned());
|
||||
assert_eq!(hash, "227b0216f9b7a324a621ff773c5241c9".to_owned());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user