From 330f3fccaa1c2d5bffbe80523526e78c1929bc7f Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 27 Apr 2025 07:45:15 -1000 Subject: [PATCH] ;dev: rename assertions.test --- doc/DEVWORKFLOWS.md | 2 +- hledger-lib/Hledger/Data/Balancing.hs | 2 +- hledger/test/README.md | 6 +++--- .../journal/{balance-assertions.test => assertions.test} | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename hledger/test/journal/{balance-assertions.test => assertions.test} (100%) diff --git a/doc/DEVWORKFLOWS.md b/doc/DEVWORKFLOWS.md index 4e7b423dd..9482ca593 100644 --- a/doc/DEVWORKFLOWS.md +++ b/doc/DEVWORKFLOWS.md @@ -226,4 +226,4 @@ If you find that adding --fast makes this any faster, please update this. ### Rerun a single functional test as you change it: - watchexec -w hledger/test/journal/balance-assertions.test just functest -i budget.*19 \ No newline at end of file + watchexec -w hledger/test/journal/assertions.test just functest -i budget.*19 \ No newline at end of file diff --git a/hledger-lib/Hledger/Data/Balancing.hs b/hledger-lib/Hledger/Data/Balancing.hs index 853b87103..6e24d5de4 100644 --- a/hledger-lib/Hledger/Data/Balancing.hs +++ b/hledger-lib/Hledger/Data/Balancing.hs @@ -527,7 +527,7 @@ journalBalanceTransactions bopts' j' = ts' <- lift $ getElems balancedtxns return j{jtxns=ts'} --- Before #2039: "Costs are removed, which helps eg balance-assertions.test: 15. Mix different commodities and assignments." +-- Before #2039: "Costs are removed, which helps eg assertions.test: 15. Mix different commodities and assignments." -- | This function is called statefully on each of a date-ordered sequence of -- 1. fully explicit postings from already-balanced transactions and diff --git a/hledger/test/README.md b/hledger/test/README.md index 7111c8d0a..eeeb170a5 100644 --- a/hledger/test/README.md +++ b/hledger/test/README.md @@ -55,10 +55,10 @@ Some explanation: - `--threads=N` runs tests in parallel which is much faster. - `-x` is another spelling of --exclude -Run only the tests matching a regular expression (here, the 19th test in the balance-assertions.test file): +Run only the tests matching a regular expression (here, the 19th test in the assertions.test file): $ just functest -i balance-assertions.*19 - :hledger/test/journal/balance-assertions.test:19: [OK] + :hledger/test/journal/assertions.test:19: [OK] Test Cases Total Passed 1 1 @@ -67,7 +67,7 @@ Run only the tests matching a regular expression (here, the 19th test in the bal Run a specific test repeatedly as its file is changed: - $ watchexec -w hledger/test/journal/balance-assertions.test just functest -i balance-assertions.*19 + $ watchexec -w hledger/test/journal/assertions.test just functest -i balance-assertions.*19 :hledger/test/cli/query-args.test:1: [OK] Test Cases Total diff --git a/hledger/test/journal/balance-assertions.test b/hledger/test/journal/assertions.test similarity index 100% rename from hledger/test/journal/balance-assertions.test rename to hledger/test/journal/assertions.test