Skip to content

Commit

Permalink
Update datafusion/functions/src/unicode/character_length.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Jul 27, 2024
1 parent d151320 commit e5aeffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/functions/src/unicode/character_length.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ mod tests {
{
test_character_length!(Some(String::from("chars")), Ok(Some(5)));
test_character_length!(Some(String::from("josé")), Ok(Some(4)));
// test long strings
// test long strings (more than 12 bytes for StringView)
test_character_length!(Some(String::from("joséjoséjoséjosé")), Ok(Some(16)));
test_character_length!(Some(String::from("")), Ok(Some(0)));
test_character_length!(None, Ok(None));
Expand Down

0 comments on commit e5aeffa

Please sign in to comment.