mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
This commit is the continuing phase of extracting functionality to subcrates. We extract test helpers and begin to change Nu shell's test organization along with it.
This commit is contained in:
19
tests/converting_formats/sqlite.rs
Normal file
19
tests/converting_formats/sqlite.rs
Normal file
@ -0,0 +1,19 @@
|
||||
use test_support::{nu, pipeline};
|
||||
|
||||
#[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, "hello");
|
||||
}
|
Reference in New Issue
Block a user