From d1d98a897a8d4a7a36a1694a71ee55919d259e29 Mon Sep 17 00:00:00 2001 From: Joseph T Lyons Date: Sat, 15 Aug 2020 01:12:48 -0400 Subject: [PATCH] Fix "occurrences" typo in histrogram test file --- crates/nu-cli/tests/commands/histogram.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nu-cli/tests/commands/histogram.rs b/crates/nu-cli/tests/commands/histogram.rs index dcddfa93d1..21fe8d0220 100644 --- a/crates/nu-cli/tests/commands/histogram.rs +++ b/crates/nu-cli/tests/commands/histogram.rs @@ -54,7 +54,7 @@ fn summarizes_by_values() { | get rusty_at | histogram | where value == "Estados Unidos" - | get ocurrences + | get occurrences | echo $it "# )); @@ -93,20 +93,20 @@ fn help() { } #[test] -fn ocurrences() { +fn occurrences() { let actual = nu!( cwd: ".", pipeline( r#" echo "[{"bit":1},{"bit":0},{"bit":0},{"bit":0},{"bit":0},{"bit":0},{"bit":0},{"bit":1}]" | from json | histogram bit - | sort-by ocurrences + | sort-by occurrences | reject frequency | to json "# )); - let bit_json = r#"[{"bit":"1","ocurrences":2,"percentage":"33.33%"},{"bit":"0","ocurrences":6,"percentage":"100.00%"}]"#; + let bit_json = r#"[{"bit":"1","occurrences":2,"percentage":"33.33%"},{"bit":"0","occurrences":6,"percentage":"100.00%"}]"#; assert_eq!(actual.out, bit_json); }