From 0fce4e831e8d553cfc70bab8edef1862efa086f4 Mon Sep 17 00:00:00 2001 From: thdox Date: Sun, 22 Feb 2015 11:44:23 +0100 Subject: --force-color does not require anymore --color. This was reported as Bug #1109 --- test/baseline/opt-color.test | 2 +- test/regress/727B2DF8.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/baseline/opt-color.test b/test/baseline/opt-color.test index a7d702bd..bc4cb48c 100644 --- a/test/baseline/opt-color.test +++ b/test/baseline/opt-color.test @@ -2,7 +2,7 @@ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 Income:Dividends:Vanguard:VMMXX $-0.35 -test bal --color --force-color +test bal --force-color 0.350 VMMXX Assets:Investments:Vanguard:VMMXX $-0.35 Income:Dividends:Vanguard:VMMXX -------------------- diff --git a/test/regress/727B2DF8.test b/test/regress/727B2DF8.test index 0c32d660..ad2b903f 100644 --- a/test/regress/727B2DF8.test +++ b/test/regress/727B2DF8.test @@ -43,7 +43,7 @@ N $ Assets:Bank:Checking ; :AnotherTag: -test reg --color --force-color +test reg --force-color 04-May-01 Checking balance Assets:Bank:Checking  $1,000.00 $1,000.00 Equit:Opening Balances $-1,000.00 0 04-May-03 Investment balance Assets:Brokerage  50 AAPL 50 AAPL -- cgit v1.2.3 From b3174a8ff9f15f8c529525733bcf5a8a583a0186 Mon Sep 17 00:00:00 2001 From: thdox Date: Tue, 24 Feb 2015 10:02:02 +0100 Subject: --force-color is now tested in CheckBaselinetests.py --- test/CheckBaselineTests.py | 1 - test/baseline/opt-color.test | 11 ----------- test/baseline/opt-force-color.test | 11 +++++++++++ 3 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 test/baseline/opt-color.test create mode 100644 test/baseline/opt-force-color.test (limited to 'test') diff --git a/test/CheckBaselineTests.py b/test/CheckBaselineTests.py index 8659d1b5..f53c59a2 100755 --- a/test/CheckBaselineTests.py +++ b/test/CheckBaselineTests.py @@ -23,7 +23,6 @@ class CheckBaselineTests (CheckOptions): 'args-only', 'debug', 'download', - 'force-color', 'force-pager', 'generated', 'help', diff --git a/test/baseline/opt-color.test b/test/baseline/opt-color.test deleted file mode 100644 index bc4cb48c..00000000 --- a/test/baseline/opt-color.test +++ /dev/null @@ -1,11 +0,0 @@ -2007/02/02 RD VMMXX - Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 - Income:Dividends:Vanguard:VMMXX $-0.35 - -test bal --force-color - 0.350 VMMXX Assets:Investments:Vanguard:VMMXX - $-0.35 Income:Dividends:Vanguard:VMMXX --------------------- - $-0.35 - 0.350 VMMXX -end test diff --git a/test/baseline/opt-force-color.test b/test/baseline/opt-force-color.test new file mode 100644 index 00000000..bc4cb48c --- /dev/null +++ b/test/baseline/opt-force-color.test @@ -0,0 +1,11 @@ +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 + +test bal --force-color + 0.350 VMMXX Assets:Investments:Vanguard:VMMXX + $-0.35 Income:Dividends:Vanguard:VMMXX +-------------------- + $-0.35 + 0.350 VMMXX +end test -- cgit v1.2.3 From cc59fa9efe0af06ce44c5de011944fdf30b36f91 Mon Sep 17 00:00:00 2001 From: thdox Date: Mon, 3 Oct 2016 23:45:25 +0200 Subject: Add another test to opt-force-color.test To verify that no ANSI color codes are printed when the --force-color option is not set. --- test/baseline/opt-force-color.test | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/baseline/opt-force-color.test b/test/baseline/opt-force-color.test index bc4cb48c..536c3834 100644 --- a/test/baseline/opt-force-color.test +++ b/test/baseline/opt-force-color.test @@ -9,3 +9,11 @@ test bal --force-color $-0.35 0.350 VMMXX end test + +test bal + 0.350 VMMXX Assets:Investments:Vanguard:VMMXX + $-0.35 Income:Dividends:Vanguard:VMMXX +-------------------- + $-0.35 + 0.350 VMMXX +end test -- cgit v1.2.3 From 5b70d4e5e4ec55ac977be4264f75cb5c3b764327 Mon Sep 17 00:00:00 2001 From: thdox Date: Tue, 4 Oct 2016 00:45:17 +0200 Subject: Add test for --color option --- test/baseline/opt-color.test | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/baseline/opt-color.test (limited to 'test') diff --git a/test/baseline/opt-color.test b/test/baseline/opt-color.test new file mode 100644 index 00000000..a0abdffc --- /dev/null +++ b/test/baseline/opt-color.test @@ -0,0 +1,11 @@ +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 + +test bal --color + 0.350 VMMXX Assets:Investments:Vanguard:VMMXX + $-0.35 Income:Dividends:Vanguard:VMMXX +-------------------- + $-0.35 + 0.350 VMMXX +end test -- cgit v1.2.3