tests(cmd): ensure insert statement works
This commit is contained in:
parent
1f90d0acc3
commit
75c3c74bba
3 changed files with 20 additions and 1 deletions
|
|
@ -101,3 +101,16 @@ impl std::str::FromStr for Command {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{command::Command, statements::Statement};
|
||||
use insta::assert_snapshot;
|
||||
|
||||
#[test]
|
||||
fn test_execute_insert_statement() {
|
||||
let statement: Command = Statement::Insert.into();
|
||||
let result = statement.execute().display();
|
||||
assert_snapshot!(result);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue