tests(cmd): ensure select statement works

This commit is contained in:
Khaïs COLIN 2025-05-03 21:15:33 +02:00
parent 75c3c74bba
commit 47f174fb25
3 changed files with 16 additions and 1 deletions

View file

@ -53,10 +53,13 @@ CLOCK: [2025-05-03 sam. 19:08]--[2025-05-03 sam. 19:21] => 0:13
:LOGBOOK: :LOGBOOK:
CLOCK: [2025-05-03 sam. 21:02]--[2025-05-03 sam. 21:09] => 0:07 CLOCK: [2025-05-03 sam. 21:02]--[2025-05-03 sam. 21:09] => 0:07
:END: :END:
** TODO insta test select ** DONE insta test select
:PROPERTIES: :PROPERTIES:
:EFFORT: 10min :EFFORT: 10min
:END: :END:
:LOGBOOK:
CLOCK: [2025-05-03 sam. 21:15]--[2025-05-03 sam. 21:16] => 0:01
:END:
** TODO insta test .exit ** TODO insta test .exit
:PROPERTIES: :PROPERTIES:
:EFFORT: 10min :EFFORT: 10min

View file

@ -113,4 +113,11 @@ mod tests {
let result = statement.execute().display(); let result = statement.execute().display();
assert_snapshot!(result); assert_snapshot!(result);
} }
#[test]
fn test_execute_select_statement() {
let statement: Command = Statement::Select.into();
let result = statement.execute().display();
assert_snapshot!(result);
}
} }

View file

@ -0,0 +1,5 @@
---
source: src/command.rs
expression: result
---
select