[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH 2/2] diff.tests: add testcases for -B and single line changes
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2015-07-31 14:52:42
Message-ID: CAK1hOcPdNLUXH8FR-zZgAae54JhBttnB9jWRzEH6cL94Ue0xjg () mail ! gmail ! com
[Download RAW message or body]
Applied both patches, thanks!
On Thu, Jul 30, 2015 at 10:13 PM, Aaro Koskinen <aaro.koskinen@iki.fi> wrote:
> Add testcases for -B and single line changes.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
> ---
> testsuite/diff.tests | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/testsuite/diff.tests b/testsuite/diff.tests
> index 84d8538..0ced0f2 100755
> --- a/testsuite/diff.tests
> +++ b/testsuite/diff.tests
> @@ -98,6 +98,18 @@ testing "diff -B does not ignore changes whose lines are not all blank" \
> "a\n" \
> "\nb\n\n"
>
> +testing "diff -B ignores blank single line change" \
> + 'diff -qB - input; echo $?' \
> + "0\n" \
> + "\n1\n" \
> + "1\n"
> +
> +testing "diff -B does not ignore non-blank single line change" \
> + 'diff -qB - input; echo $?' \
> + "Files - and input differ\n1\n" \
> + "0\n" \
> + "1\n"
> +
> testing "diff always takes context from old file" \
> "diff -ub - input | $TRIM_TAB" \
> "\
> --
> 2.4.0
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic