forked from extern/nushell
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
22 lines
456 B
Rust
22 lines
456 B
Rust
#[cfg(feature = "sqlite")]
|
|
use nu_test_support::{nu, pipeline};
|
|
|
|
#[cfg(feature = "sqlite")]
|
|
#[test]
|
|
fn table_to_sqlite_and_back_into_table() {
|
|
let actual = nu!(
|
|
cwd: "tests/fixtures/formats", pipeline(
|
|
r#"
|
|
open sample.db
|
|
| to sqlite
|
|
| from sqlite
|
|
| get table_values
|
|
| nth 2
|
|
| get x
|
|
| echo $it
|
|
"#
|
|
));
|
|
|
|
assert_eq!(actual.out, "hello");
|
|
}
|