Skip to content

Commit

Permalink
Did it get into R right?
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Sep 25, 2024
1 parent 6a6b3ca commit a40e2e6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions crates/ark/src/data_explorer/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,11 +751,15 @@ mod tests {
]);

options.max_value_length = 1000;
let data = harp::parse_eval_global(r#"c("ボルテックス")"#).unwrap();
let formatted = format_column(data.sexp, &options);
assert_eq!(formatted, vec![ColumnValue::FormattedValue(
"ボルテックス".to_string()
),]);
let _ = harp::parse_eval_global(r#"x <- c("ボルテックス")"#).unwrap();
let data = harp::parse_eval_global(r#"Encoding(x)"#).unwrap();
let data = String::try_from(data).unwrap();
let _ = harp::parse_eval_global(r#"rm(x)"#).unwrap();
assert_eq!(data, "UTF-8".to_string());
// let formatted = format_column(data.sexp, &options);
// assert_eq!(formatted, vec![ColumnValue::FormattedValue(
// "ボルテックス".to_string()
// ),]);

// options.max_value_length = 4;
// let data = harp::parse_eval_global(r#"c("नमस्ते")"#).unwrap();
Expand Down

0 comments on commit a40e2e6

Please sign in to comment.