tests(cmd): ensure select statement works
This commit is contained in:
parent
75c3c74bba
commit
47f174fb25
3 changed files with 16 additions and 1 deletions
|
|
@ -53,10 +53,13 @@ CLOCK: [2025-05-03 sam. 19:08]--[2025-05-03 sam. 19:21] => 0:13
|
|||
:LOGBOOK:
|
||||
CLOCK: [2025-05-03 sam. 21:02]--[2025-05-03 sam. 21:09] => 0:07
|
||||
:END:
|
||||
** TODO insta test select
|
||||
** DONE insta test select
|
||||
:PROPERTIES:
|
||||
:EFFORT: 10min
|
||||
:END:
|
||||
:LOGBOOK:
|
||||
CLOCK: [2025-05-03 sam. 21:15]--[2025-05-03 sam. 21:16] => 0:01
|
||||
:END:
|
||||
** TODO insta test .exit
|
||||
:PROPERTIES:
|
||||
:EFFORT: 10min
|
||||
|
|
|
|||
|
|
@ -113,4 +113,11 @@ mod tests {
|
|||
let result = statement.execute().display();
|
||||
assert_snapshot!(result);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_execute_select_statement() {
|
||||
let statement: Command = Statement::Select.into();
|
||||
let result = statement.execute().display();
|
||||
assert_snapshot!(result);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
source: src/command.rs
|
||||
expression: result
|
||||
---
|
||||
select
|
||||
Loading…
Add table
Add a link
Reference in a new issue