[feat] 增加 TD test 以及 ledger 后端增加 tag 的支持 #108
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
double-entry-generator
增加TD
provider 的 End-to-End test.test/test-td-{ledger,beancount}.sh
文件example/td/example-td-output.beancount
文件, 原来文件直接 copy 自 ledger 文件.ledger
后端增加metatag
的支持; :tag1:
; :tag1:tag2:
Motivation and Context
#101
Dependencies
None
Type of change
Please delete options that are not relevant.
How has this been tested?
End-to-End test
td-test-ledger.sh
: passtd-test-beancount.sh
: passmake test
: passmetatag test
ledger -f ./example/td/example-td-output.ledger --limit 'has_tag(/cheap_tag2/)' reg
, 返回结果符合预期:ledger -f ./example/td/example-td-output.ledger --limit 'has_tag(/tt_tag/)' reg
, 返回结果符合预期:Is this change properly documented?
Please make sure you've properly documented the changes you're making.
Don't forget to add an entry to the CHANGELOG/README if necessary (new features, breaking changes, relevant internal improvements).
Yes, we need to update the README, I would submit a new PR to update README once everything is done.