mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
refactor(tests): update format_bytes_speed test cases for consistent output
This commit is contained in:
@@ -104,6 +104,10 @@ fn test_script() {
|
||||
let (config, results) = use_script(script.into(), config, "".to_string()).unwrap();
|
||||
|
||||
let _ = serde_yaml::to_string(&config).unwrap();
|
||||
|
||||
let origin_size = std::mem::size_of_val(&config);
|
||||
dbg!(origin_size);
|
||||
let box_size = std::mem::size_of_val(&Box::new(config));
|
||||
dbg!(box_size);
|
||||
dbg!(results);
|
||||
assert!(origin_size > box_size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user