aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* viml/parser/expressions: Fix call inside nested parenthesisZyX2017-10-15
| | | | It may have incorrectly tried to call everything because of essentially “value” nodes being treated as not such.
* unittests: Add support for dumping “expected” stateZyX2017-10-08
| | | Purpose is similar to that of `screen:snapshot_util()`, but in different domain.
* viml/parser/expressions: Add a way to adjust lexerZyX2017-10-08
| | | | | | | It also adds support for kExprLexOr which for some reason was forgotten. It was only made sure that KLEE test compiles in non-KLEE mode, not that something works or that KLEE is able to run tests.
* viml/parser/expressions: Make curly braces name actually workZyX2017-10-08
|
* viml/parser/expressions: Make commas actually work when callingZyX2017-10-08
|
* viml/parser/expressions: Make commas actually work when callingZyX2017-10-08
|
* viml/parser/expressions: Add support for figure braces (three kinds)ZyX2017-10-08
|
* klee: Start preparing for klee testsZyX2017-10-08
| | | | | | | | | | | First stage: something compiling without klee, but with a buch of dirty hacks - done. Second stage: something running under klee, able to emit useful results, but still using dirty hacks - done. Third stage: make CMake care about clang argumnets - not done, may be omitted if proves to be too hard. Not that klee can be run on CI in any case.
* viml/parser/expressions: Start creating expressions parserZyX2017-10-08
| | | | | | | | | | | | | | Currently supported nodes: - Register as it is one of the simplest value nodes (even numbers are not that simple with that dot handling). - Plus, both unary and binary. - Parenthesis, both nesting and calling. Note regarding unit tests: it stores data for AST in highlighting in strings in place of tables because luassert fails to do a good job at representing big tables. Squashing a bunch of data into a single string simply yields more readable result.
* unittests: Move some functions into helpers modulesZyX2017-10-08
|
* viml/parser: Handle encoding conversionsZyX2017-10-08
|
* viml/expressions: Add lexer with some basic testsZyX2017-10-08
|
* unittests: Add a way to print trace on regular errorZyX2017-09-29
|
* test/helpers: Add format_string and format_luavZyX2017-09-29
| | | | | First intended to provide %r functionality like in Python (and also support for %*.*s, but this was not checked), second adds nice table formatting for use in cases similar to screen:snapshot_util().
* test/win: give up on this oneJustin M. Keyes2017-08-16
|
* test/win: place cursor at edge to tickle SIGWINCHJustin M. Keyes2017-08-16
|
* test: tty-test.c: keep `tty_out` handle aroundJustin M. Keyes2017-08-16
| | | | | Now the window_split_tab_spec.lua test seems to work. Also do some cleanup.
* win/test: enable more :terminal testsJustin M. Keyes2017-08-16
| | | | | | To deal with SIGWINCH limitations on Windows, change some resize tests to _shrink_ the screen width. ... But this didn't work, so still ignoring those tests on Windows.
* test: tty-test.c: restore win32 SIGWINCH handlerJustin M. Keyes2017-08-16
|
* test: cleanupJustin M. Keyes2017-08-16
|
* win/pty: log errorserw72017-08-16
|
* win/test: tty-test: print screen size explicitly with CTRL-Qerw72017-08-16
| | | | | tty-test.exe causes abnormal termination with low repeatability, try changing it so as not to use SIGWINCH.
* win: support :terminalerw72017-08-16
|
* Merge #6364 'command-line color hook'Justin M. Keyes2017-08-16
|\
| * ex_getln: Make error messages look betterZyX2017-08-14
| |
| * functests: Alter commentZyX2017-08-14
| |
| * functests: Check that input is correctly silencedZyX2017-08-14
| |
| * Merge branch 'master' into colored-cmdlineZyX2017-08-06
| |\
| * | functests: Remove wait() from input_specZyX2017-08-06
| | |
| * | Merge branch 'master' into colored-cmdlineZyX2017-07-31
| |\ \
| * | | Revert "functests: Replace wait() with nvim_async"ZyX2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e129607988b88719935bc4af517e7ee2689f5871. Tests stopped working in CI.
| * | | ex_getln: Cache highlight callback calling resultsZyX2017-07-26
| | | |
| * | | functests: Replace wait() with nvim_asyncZyX2017-07-26
| | | |
| * | | functests: Remove unneeded wait()sZyX2017-07-26
| | | |
| * | | functests: Add sleep to <C-c> testZyX2017-07-18
| | | |
| * | | functests: Test input() nesting supportZyX2017-07-18
| | | |
| * | | functests: Check for previously unchecked errorsZyX2017-07-18
| | | |
| * | | ex_getln: Check prev_prompt_errors before running redrawcmdlineZyX2017-07-18
| | | | | | | | | | | | | | | | Otherwise there will be infinite recursion and shortly a crash. Running redrawcmdline recursively occurs under color_cmdline_error label.
| * | | api helpers: Also save and restore did_emsgZyX2017-07-18
| | | |
| * | | ex_getln: Do not goto color_cmdline_end without first cleaning upZyX2017-07-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The issue with debug mode was actually not cleaning up after `try_enter`: location `&tstate` was pointing to got invalidated and received some “garbage” (actually, values that got stored on the stack afterwards). But pointer to that garbage was still stored in `msg_list`, so next attempt to check it resulted in a crash.
| * | | Merge branch 'master' into colored-cmdlineZyX2017-07-15
| |\ \ \
| * | | | ex_getln: Save and restore try stateZyX2017-07-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: when processing cycle such as :for pat in [' \ze*', ' \zs*'] : try : let l = matchlist('x x', pat) : $put ='E888 NOT detected for ' . pat : catch : $put ='E888 detected for ' . pat : endtry :endfor `:let l = …` throwing an error causes this error to be caught after color_cmdline attempts to get callback for highlighting next line (the one with `$put = 'E888 NOT…`). Saving/restoring state prevents this from happening.
| * | | | ex_getln: Do not make <C-c> interrupt input() after interrupting hl cbZyX2017-06-28
| | | | |
| * | | | ex_getln: Fix “echoerr msg not shown” problemZyX2017-06-28
| | | | | | | | | | | | | | | | | | | | | | | | | This also attempted to fix problem with cancelling input() on error by avoiding standard error printing facilities (assumed thrown error message is the problem), but with no luck so far.
| * | | | functests: Uncomment `{REDRAW}` part of “works” testZyX2017-06-28
| | | | |
| * | | | functests: Partially uncomment <C-c> testZyX2017-06-28
| | | | |
| * | | | ex_getln: Call highlight callback inside :tryZyX2017-06-28
| | | | |
| * | | | functests: Make “stops executing callback” test workZyX2017-06-28
| | | | | | | | | | | | | | | | | | | | Needed to be adjusted to use input() (previously relied on side-effects of executing `:cmd`) and dismiss something (hidden “Press ENTER” message?).
| * | | | functests: Fix typoZyX2017-06-28
| | | | |
| * | | | functests: Make tests work with input()ZyX2017-06-27
| | | | | | | | | | | | | | | There are still some issues: specifically, new “pending” test hangs busted.