mirror of
https://github.com/nushell/nushell.git
synced 2024-12-29 02:19:44 +01:00
d8594a62c2
* 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
19 lines
399 B
Rust
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");
|
|
}
|