From f81465534e2c86a5a3dfe387c88723cc75a79c30 Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 26 Nov 2023 21:58:39 -0700 Subject: [PATCH] testdata --- src/testdata/cmdline.txt | 3 +++ src/testdata/standalone.txt | 9 +++++++++ src/testdata/standalone.yaml | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 src/testdata/cmdline.txt create mode 100644 src/testdata/standalone.txt create mode 100644 src/testdata/standalone.yaml diff --git a/src/testdata/cmdline.txt b/src/testdata/cmdline.txt new file mode 100644 index 0000000..9af1581 --- /dev/null +++ b/src/testdata/cmdline.txt @@ -0,0 +1,3 @@ +$ tsheet-cli -clock-in # adds "" for the timestamp +$ tsheet-cli -add def -tag abc # adds def with tag abc using same-day for duration OR 1h +$ tsheet-cli -log -since YYYY-MM-DD # prints standalone.txt inclusive since given time diff --git a/src/testdata/standalone.txt b/src/testdata/standalone.txt new file mode 100644 index 0000000..e420b73 --- /dev/null +++ b/src/testdata/standalone.txt @@ -0,0 +1,9 @@ +- t: 1969-12-31 + d: + adds: + - d: 1 + add: abc + adds: + - def + - d: 0 + add: ghi diff --git a/src/testdata/standalone.yaml b/src/testdata/standalone.yaml new file mode 100644 index 0000000..423b48d --- /dev/null +++ b/src/testdata/standalone.yaml @@ -0,0 +1,6 @@ +adds: +- t: 1 + add: def + tag: abc +- t: 2 + add: ghi