#!/bin/sh global test_description := ''patience diff algorithm'' source ./test-lib.sh source "$TEST_DIRECTORY"/lib-diff-alternative.sh test_expect_success '--ignore-space-at-eol with a single appended character' ' printf "a\nb\nc\n" >pre && printf "a\nbX\nc\n" >post && test_must_fail git diff --no-index \ --patience --ignore-space-at-eol pre post >diff && grep "^+.*X" diff ' test_diff_frobnitz "patience" test_diff_unique "patience" test_done (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <"patience diff algorithm">)} spids: [4] ) ] spids: [4] ) (C {(.)} {(./test-lib.sh)}) (C {(.)} {(DQ ($ VSub_Name "$TEST_DIRECTORY")) (/lib-diff-alternative.sh)}) (C {(test_expect_success)} {(SQ <"--ignore-space-at-eol with a single appended character">)} { (SQ <"\n"> <"\tprintf \"a\\nb\\nc\\n\" >pre &&\n"> <"\tprintf \"a\\nbX\\nc\\n\" >post &&\n"> <"\ttest_must_fail git diff --no-index \\\n"> <"\t\t--patience --ignore-space-at-eol pre post >diff &&\n"> <"\tgrep \"^+.*X\" diff\n"> ) } ) (C {(test_diff_frobnitz)} {(DQ (patience))}) (C {(test_diff_unique)} {(DQ (patience))}) (C {(test_done)}) ] )