diff --git a/crates/ark/build.rs b/crates/ark/build.rs index e3dac5da0..cf0a1a9f3 100644 --- a/crates/ark/build.rs +++ b/crates/ark/build.rs @@ -40,5 +40,5 @@ fn main() { let resource = Path::new("resources") .join("manifest") .join("ark-manifest.rc"); - embed_resource::compile_for_tests(resource, embed_resource::NONE); + embed_resource::compile(resource, embed_resource::NONE); } diff --git a/crates/ark/src/data_explorer/format.rs b/crates/ark/src/data_explorer/format.rs index 1fad194cd..bf9054e1d 100644 --- a/crates/ark/src/data_explorer/format.rs +++ b/crates/ark/src/data_explorer/format.rs @@ -752,23 +752,23 @@ mod tests { ColumnValue::FormattedValue("aa".to_string()), ]); - options.max_value_length = 1000; - let text = RObject::from(r#"x <- c("ボルテックス")"#); - unsafe { r_envir_set("text", text.sexp, R_GlobalEnv) }; - let data = harp::parse_eval_global(r#"Encoding(text)"#).unwrap(); - let data = String::try_from(data).unwrap(); - let _ = harp::parse_eval_global(r#"rm(text)"#).unwrap(); - assert_eq!(data, "UTF-8".to_string()); + // options.max_value_length = 1000; + // let text = RObject::from(r#"x <- c("ボルテックス")"#); + // unsafe { r_envir_set("text", text.sexp, R_GlobalEnv) }; + // let data = harp::parse_eval_global(r#"Encoding(text)"#).unwrap(); + // let data = String::try_from(data).unwrap(); + // let _ = harp::parse_eval_global(r#"rm(text)"#).unwrap(); + // assert_eq!(data, "UTF-8".to_string()); // let data = harp::parse_eval_global("Sys.getlocale()").unwrap(); // let data = String::try_from(data).unwrap(); // assert_eq!(data, "wrong".to_string()); - let data = - harp::parse_eval_global("paste0(capture.output(sessionInfo()), collapse = ' ')") - .unwrap(); - let data = String::try_from(data).unwrap(); - assert_eq!(data, "wrong".to_string()); + // let data = + // harp::parse_eval_global("paste0(capture.output(sessionInfo()), collapse = ' ')") + // .unwrap(); + // let data = String::try_from(data).unwrap(); + // assert_eq!(data, "wrong".to_string()); // let _ = harp::parse_eval_global(r#"x <- c("ボルテックス")"#).unwrap(); // let data = harp::parse_eval_global(r#"Encoding(x)"#).unwrap(); diff --git a/crates/ark/tests/data_explorer.rs b/crates/ark/tests/data_explorer.rs index c5285aefa..3a984d4e0 100644 --- a/crates/ark/tests/data_explorer.rs +++ b/crates/ark/tests/data_explorer.rs @@ -1808,6 +1808,11 @@ fn test_histogram() { #[test] fn test_frequency_table() { r_test(|| { + let data = harp::parse_eval_global("paste0(capture.output(sessionInfo()), collapse = ' ')") + .unwrap(); + let data = String::try_from(data).unwrap(); + assert_eq!(data, "wrong".to_string()); + let socket = open_data_explorer_from_expression("data.frame(x = rep(letters[1:10], 10:1))", None) .unwrap();