Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Oct 27, 2023
1 parent 00290dc commit 6475979
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/nu-command/tests/commands/str_/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ fn downcases() {
})
}

#[test]
fn non_ascii_downcase() {
let actual = nu!("'ὈΔΥΣΣΕΎΣ' | str downcase");

assert_eq!(actual.out, "ὀδυσσεύς");
}

#[test]
fn upcases() {
Playground::setup("str_test_4", |dirs, sandbox| {
Expand All @@ -96,6 +103,13 @@ fn upcases() {
})
}

#[test]
fn non_ascii_upcase() {
let actual = nu!("'ὀδυσσεύς' | str upcase");

assert_eq!(actual.out, "ὈΔΥΣΣΕΎΣ");
}

#[test]
#[ignore = "Playgrounds are not supported in nu-cmd-extra"]
fn camelcases() {
Expand Down

0 comments on commit 6475979

Please sign in to comment.