nushell/crates/nu-cli/tests/format_conversions/bson.rs
Jonathan Turner d8594a62c2
Add wasm support (#2199)
* Working towards a PoC for wasm

* Move bson and sqlite to plugins

* proof of concept now working

* tests are green

* Add CI test for --no-default-features

* Fix some tests

* Fix clippy and windows build

* More fixes

* Fix the windows build

* Fix the windows test
2020-07-18 13:59:23 +12:00

19 lines
399 B
Rust

#[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
| echo $it
"#
));
assert_eq!(actual.out, "whel");
}