diff --git a/crates/nu-command/tests/commands/open.rs b/crates/nu-command/tests/commands/open.rs index 1e4173132a..05dd4fe9d8 100644 --- a/crates/nu-command/tests/commands/open.rs +++ b/crates/nu-command/tests/commands/open.rs @@ -29,59 +29,6 @@ fn parses_csv() { }) } -// sample.bson has the following format: -// ━━━━━━━━━━┯━━━━━━━━━━━ -// _id │ root -// ──────────┼─────────── -// [object] │ [9 items] -// ━━━━━━━━━━┷━━━━━━━━━━━ -// -// the root value is: -// ━━━┯━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━ -// # │ _id │ a │ b │ c -// ───┼───────────────────┼─────────────────────────┼──────────┼────────── -// 0 │ [object] │ 1.000000000000000 │ hello │ [2 items] -// 1 │ [object] │ 42.00000000000000 │ whel │ hello -// 2 │ [object] │ [object] │ │ -// 3 │ [object] │ │ [object] │ -// 4 │ [object] │ │ │ [object] -// 5 │ [object] │ │ │ [object] -// 6 │ [object] │ [object] │ [object] │ -// 7 │ [object] │ │ [object] │ -// 8 │ 1.000000 │ │ [object] │ -// -// The decimal value is supposed to be π, but is currently wrong due to -// what appears to be an issue in the bson library that is under investigation. -// - -#[cfg(feature = "bson")] -#[test] -fn parses_bson() { - let actual = nu!( - cwd: "tests/fixtures/formats", - "open sample.bson | get root | select 0 | get b" - ); - - assert_eq!(actual.out, "hello"); -} - -#[cfg(feature = "bson")] -#[test] -fn parses_more_bson_complexity() { - let actual = nu!( - cwd: "tests/fixtures/formats", pipeline( - r#" - open sample.bson - | get root - | select 6 - | get b - | get '$binary_subtype' - "# - )); - - assert_eq!(actual.out, "function"); -} - // sample.db has the following format: // // ╭─────────┬────────────────╮ diff --git a/crates/nu-command/tests/format_conversions/bson.rs b/crates/nu-command/tests/format_conversions/bson.rs deleted file mode 100644 index cd7969e0f2..0000000000 --- a/crates/nu-command/tests/format_conversions/bson.rs +++ /dev/null @@ -1,17 +0,0 @@ -#[cfg(feature = "bson")] -#[test] -fn table_to_bson_and_back_into_table() { - use nu_test_support::{nu, pipeline}; - let actual = nu!( - cwd: "tests/fixtures/formats", pipeline( - r#" - open sample.bson - | to bson - | from bson - | get root - | get 1.b - "# - )); - - assert_eq!(actual.out, "whel"); -} diff --git a/crates/nu-command/tests/format_conversions/mod.rs b/crates/nu-command/tests/format_conversions/mod.rs index 26bf318a79..aaa256c154 100644 --- a/crates/nu-command/tests/format_conversions/mod.rs +++ b/crates/nu-command/tests/format_conversions/mod.rs @@ -1,4 +1,3 @@ -mod bson; mod csv; #[cfg(feature = "extra")] mod html; diff --git a/tests/fixtures/formats/sample.bson b/tests/fixtures/formats/sample.bson deleted file mode 100644 index ff51ae2072..0000000000 Binary files a/tests/fixtures/formats/sample.bson and /dev/null differ