cli: drop an unnecessary test grouping causing unwanted output
This commit is contained in:
parent
85e5bd0978
commit
fd74da0836
@ -76,13 +76,11 @@ tests_Hledger_Cli = TestList
|
|||||||
|
|
||||||
|
|
||||||
,"apply account directive" ~:
|
,"apply account directive" ~:
|
||||||
let ignoresourcepos j = j{jtxns=map (\t -> t{tsourcepos=nullsourcepos}) (jtxns j)} in
|
let ignoresourcepos j = j{jtxns=map (\t -> t{tsourcepos=nullsourcepos}) (jtxns j)} in
|
||||||
let sameParse str1 str2 = do j1 <- readJournal Nothing Nothing True Nothing str1 >>= either error' (return . ignoresourcepos)
|
let sameParse str1 str2 = do j1 <- readJournal Nothing Nothing True Nothing str1 >>= either error' (return . ignoresourcepos)
|
||||||
j2 <- readJournal Nothing Nothing True Nothing str2 >>= either error' (return . ignoresourcepos)
|
j2 <- readJournal Nothing Nothing True Nothing str2 >>= either error' (return . ignoresourcepos)
|
||||||
j1 `is` j2{jlastreadtime=jlastreadtime j1, jfiles=jfiles j1} --, jparsestate=jparsestate j1}
|
j1 `is` j2{jlastreadtime=jlastreadtime j1, jfiles=jfiles j1} --, jparsestate=jparsestate j1}
|
||||||
in TestList
|
in sameParse
|
||||||
[
|
|
||||||
"apply account directive 1" ~: sameParse
|
|
||||||
("2008/12/07 One\n alpha $-1\n beta $1\n" <>
|
("2008/12/07 One\n alpha $-1\n beta $1\n" <>
|
||||||
"apply account outer\n2008/12/07 Two\n aigh $-2\n bee $2\n" <>
|
"apply account outer\n2008/12/07 Two\n aigh $-2\n bee $2\n" <>
|
||||||
"apply account inner\n2008/12/07 Three\n gamma $-3\n delta $3\n" <>
|
"apply account inner\n2008/12/07 Three\n gamma $-3\n delta $3\n" <>
|
||||||
@ -102,8 +100,6 @@ tests_Hledger_Cli = TestList
|
|||||||
assertBool "" $ paccount p == "test:from"
|
assertBool "" $ paccount p == "test:from"
|
||||||
assertBool "" $ ptype p == VirtualPosting
|
assertBool "" $ ptype p == VirtualPosting
|
||||||
|
|
||||||
]
|
|
||||||
|
|
||||||
,"account aliases" ~: do
|
,"account aliases" ~: do
|
||||||
j <- readJournal Nothing Nothing True Nothing "!alias expenses = equity:draw:personal\n1/1\n (expenses:food) 1\n" >>= either error' return
|
j <- readJournal Nothing Nothing True Nothing "!alias expenses = equity:draw:personal\n1/1\n (expenses:food) 1\n" >>= either error' return
|
||||||
let p = head $ tpostings $ head $ jtxns j
|
let p = head $ tpostings $ head $ jtxns j
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user