;dev: csv: no need to test for unsupported feature [#2352]
This commit is contained in:
parent
a8a0d3ee30
commit
133560aa93
@ -1602,8 +1602,6 @@ tests_RulesReader = testGroup "RulesReader" [
|
|||||||
parseWithState' defrules (regexp eof) "A A && xxx" @?= (Right $ toRegexCI' "A A")
|
parseWithState' defrules (regexp eof) "A A && xxx" @?= (Right $ toRegexCI' "A A")
|
||||||
,testCase "regexp contains &" $
|
,testCase "regexp contains &" $
|
||||||
parseWithState' defrules (regexp eof) "A & B" @?= (Right $ toRegexCI' "A & B")
|
parseWithState' defrules (regexp eof) "A & B" @?= (Right $ toRegexCI' "A & B")
|
||||||
,testCase "regexp contains escaped &" $
|
|
||||||
parseWithState' defrules (regexp eof) "A \\& B" @?= (Right $ toRegexCI' "A \\& B")
|
|
||||||
]
|
]
|
||||||
|
|
||||||
, let matchers = [RecordMatcher Or (toRegexCI' "A"), RecordMatcher And (toRegexCI' "B")]
|
, let matchers = [RecordMatcher Or (toRegexCI' "A"), RecordMatcher And (toRegexCI' "B")]
|
||||||
|
|||||||
@ -1203,10 +1203,9 @@ $ ./csvtest.sh
|
|||||||
|
|
||||||
>=0
|
>=0
|
||||||
|
|
||||||
# ** 62. Matchers can contain '&', either escaped or unescaped (#2352)
|
# ** 62. Single ampersands within a matcher are part of the regexp, not an AND operator. (#2352)
|
||||||
<
|
<
|
||||||
2025-01-01,STOP & SHOP,100
|
2025-01-01,STOP & SHOP,100
|
||||||
2025-01-01,H & M,100
|
|
||||||
|
|
||||||
RULES
|
RULES
|
||||||
fields date,description,amount
|
fields date,description,amount
|
||||||
@ -1215,19 +1214,11 @@ if
|
|||||||
%description STOP & SHOP
|
%description STOP & SHOP
|
||||||
account1 expenses:food
|
account1 expenses:food
|
||||||
|
|
||||||
if
|
|
||||||
%description H \& M
|
|
||||||
account1 expenses:clothing
|
|
||||||
|
|
||||||
$ ./csvtest.sh
|
$ ./csvtest.sh
|
||||||
2025-01-01 STOP & SHOP
|
2025-01-01 STOP & SHOP
|
||||||
expenses:food 100
|
expenses:food 100
|
||||||
income:unknown -100
|
income:unknown -100
|
||||||
|
|
||||||
2025-01-01 H & M
|
|
||||||
expenses:clothing 100
|
|
||||||
income:unknown -100
|
|
||||||
|
|
||||||
>=
|
>=
|
||||||
|
|
||||||
# ** .
|
# ** .
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user