kakoune/test
Maxime Coste 8650c99f13 Fix assertion when replacing with empty strings
Replacing with empty strings is essentially a deletion, which means
it can end up push some selections out of the buffer (imagine 3 a
2 empty line buffer, and deleting the second one). We are fixing
the selections in SelectionList::erase, but we were not doing that
in SelectionList::insert.

Fixes #1504
2017-07-14 13:08:29 +09:00
..
compose test: Fix UTF8 compliant locale detection 2017-02-23 18:46:56 +03:00
display Rework partial line display logic 2017-06-09 13:22:32 +01:00
highlight/regions Rework partial line display logic 2017-06-09 13:22:32 +01:00
indent Fix corner case in C family indenting 2017-06-13 10:19:38 +01:00
normal Use the extra_word_chars option in word based normal commands 2017-06-26 15:28:41 +01:00
regression Fix assertion when replacing with empty strings 2017-07-14 13:08:29 +09:00
README.asciidoc add testing framework 2014-06-30 12:22:50 +02:00
run Do not allow repeating last insert when we are not in normal mode 2017-06-27 09:57:10 +01:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Regression test
===============

:unified-context-diff: https://en.wikipedia.org/wiki/Diff#Unified_format

Source structure
----------------

----------------------------------------------
.
├── unit
│   └── …
└── compose
    └── …
        ├── cmd          → command
        ├── [in]         → start file
        ├── [out]        → end file
        ├── [selections] → selection contents
        ├── [state]      → selection states
        └── [rc]         → configuration
----------------------------------------------

Usage
-----

To test, just type +run [test]+ in the +test+ directory.
It will print each passing test.  If a test fails, a {unified-context-diff}[unified context diff]
is printed showing the tests expected output and the actual output.