aligrudi / neatvi

A small vi/ex editor for editing UTF-8 text
http://litcave.rudi.ir/
305 stars 25 forks source link

Added count fails #45

Closed polluks closed 2 years ago

aligrudi commented 2 years ago

Stefan @.***> wrote:

You can view, comment on, or merge this pull request online at:

https://github.com/aligrudi/neatvi/pull/45

-- Commit Summary --

  • Added count fails

-- File Changes --

M test.sh (4)

-- Patch Links --

https://github.com/aligrudi/neatvi/pull/45.patch https://github.com/aligrudi/neatvi/pull/45.diff

Thanks for the patch.

Given that even a single failure is unacceptable, how about stopping at the first failure instead?

Something like this patch:

diff --git a/test.sh b/test.sh index 28e9a48..b2b3d4b 100755 --- a/test.sh +++ b/test.sh @@ -1,15 +1,23 @@

!/bin/sh

+testcase() {

polluks commented 2 years ago

I see, one function is better than three cmp's. However without exit you get some kind of overview.

aligrudi commented 2 years ago

Stefan @.***> wrote:

I see, one function is better than three cmp's. However without exit you get some kind of overview.

Before, I usually searched the output for the first failure to fix. Now, that would be much easier.

I have applied a cleaned up version of this patch. Please report if there is a problem.

Thanks, Ali