mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 20:07:42 +02:00
histogram gives back percentage column. (#2340)
This commit is contained in:
committed by
GitHub
parent
48cfc9b598
commit
8ff15c46c1
@ -106,7 +106,7 @@ fn count() {
|
||||
"#
|
||||
));
|
||||
|
||||
let bit_json = r#"[{"bit":"1","count":2},{"bit":"0","count":6}]"#;
|
||||
let bit_json = r#"[{"bit":"1","count":2,"percentage":"33.33%"},{"bit":"0","count":6,"percentage":"100.00%"}]"#;
|
||||
|
||||
assert_eq!(actual.out, bit_json);
|
||||
}
|
||||
|
Reference in New Issue
Block a user