File: opt-lisp-date-format.test

package info (click to toggle)
ledger 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,964 kB
  • sloc: cpp: 39,393; python: 4,476; perl: 1,309; sh: 477; lisp: 435; yacc: 103; makefile: 58
file content (34 lines) | stat: -rw-r--r-- 1,124 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
2017/03/24 Foo bar
    ;some food
    Expenses:Food  9
    Assets:Checking  -9

test lisp --now=2017/03/24
(("$sourcepath/test/baseline/opt-lisp-date-format.test" 1 (22740 42960 0) nil "Foo bar"
  (3 "Expenses:Food" "9" nil)
  (4 "Assets:Checking" "-9" nil)))
end test

test --lisp-date-format seconds lisp --now=2017/03/24
(("$sourcepath/test/baseline/opt-lisp-date-format.test" 1 1490331600 nil "Foo bar"
  (3 "Expenses:Food" "9" nil)
  (4 "Assets:Checking" "-9" nil)))
end test

test --lisp-date-format epoch lisp --now=2017/03/24
(("$sourcepath/test/baseline/opt-lisp-date-format.test" 1 1490331600 nil "Foo bar"
  (3 "Expenses:Food" "9" nil)
  (4 "Assets:Checking" "-9" nil)))
end test

test --lisp-date-format '%Y-%m-%d' lisp --now=2017/03/24
(("$sourcepath/test/baseline/opt-lisp-date-format.test" 1 "2017-03-24" nil "Foo bar"
  (3 "Expenses:Food" "9" nil)
  (4 "Assets:Checking" "-9" nil)))
end test

test --lisp-date-format '%Y/%m/%d' lisp --now=2017/03/24
(("$sourcepath/test/baseline/opt-lisp-date-format.test" 1 "2017/03/24" nil "Foo bar"
  (3 "Expenses:Food" "9" nil)
  (4 "Assets:Checking" "-9" nil)))
end test