summaryrefslogtreecommitdiff
path: root/src/testing.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-4/+57
| | | | | | Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
* patch 8.2.3221: Vim9: argument types are not checked at compile timev8.2.3221Yegappan Lakshmanan2021-07-251-1/+18
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
* patch 8.2.3215: Vim9: argument types are not checked at compile timev8.2.3215Yegappan Lakshmanan2021-07-241-7/+9
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. Sort the argument lists. (Yegappan Lakshmanan, closes #8626)
* patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan2021-07-201-8/+5
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
* patch 8.2.3162: Vim9: argument types are not checked at compile timev8.2.3162Yegappan Lakshmanan2021-07-151-3/+12
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560)
* patch 8.2.3150: Vim9: argument types are not checked at compile timev8.2.3150Yegappan Lakshmanan2021-07-111-0/+3
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8545)
* patch 8.2.3135: Vim9: builtin function arguments not checked at compile timev8.2.3135Yegappan Lakshmanan2021-07-101-1/+4
| | | | | Problem: Vim9: builtin function arguments not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8539)
* patch 8.2.3067: building fails with Athenav8.2.3067Bram Moolenaar2021-06-271-1/+1
| | | | | Problem: Building fails with Athena. (Elimar Riesebieter) Solution: Adjust #ifdefs and add the 'drop_file' feature.
* patch 8.2.3040: GUI: dropping files not testedv8.2.3040Yegappan Lakshmanan2021-06-231-2/+58
| | | | | | Problem: GUI: dropping files not tested. Solution: Add test_gui_drop_files() and tests. (Yegappan Lakshmanan, closes #8434)
* patch 8.2.3036: Vim9: builtin function arguments not checked at compile timev8.2.3036Yegappan Lakshmanan2021-06-221-5/+27
| | | | | | Problem: Vim9: builtin function arguments not checked at compile time. Solution: Add more argument type specs. Check arguments to test_setmouse() and test_gui_mouse_event(). (Yegappan Lakshmanan, closes #8425)
* patch 8.2.3028: GUI mouse events not testedv8.2.3028Yegappan Lakshmanan2021-06-211-0/+14
| | | | | | Problem: GUI mouse events not tested. Solution: Add test_gui_mouse_event(). Add mouse tests. Also add a few viminfo tests. (Yegappan Lakshmanan, closes #8407)
* patch 8.2.2842: Vim9: skip argument to searchpair() is not compiledv8.2.2842Bram Moolenaar2021-05-071-0/+1
| | | | | Problem: Vim9: skip argument to searchpair() is not compiled. Solution: Add VAR_INSTR.
* patch 8.2.2694: when 'matchpairs' is empty every character beepsv8.2.2694Bram Moolenaar2021-04-021-4/+16
| | | | | | Problem: When 'matchpairs' is empty every character beeps. (Marco Hinz) Solution: Bail out when no character in 'matchpairs' was found. (closes #8053) Add assert_nobeep().
* patch 8.2.2586: process id may be invalidv8.2.2586Bram Moolenaar2021-03-101-0/+3
| | | | | | Problem: Process id may be invalid. Solution: Use sysinfo.uptime to check for recent reboot. (suggested by Hugo van der Sanden, closes #7947)
* patch 8.2.1953: Vim9: extra "unknown" error after other errorv8.2.1953Bram Moolenaar2020-11-041-1/+10
| | | | | | Problem: Vim9: extra "unknown" error after other error. Solution: Restore did_emsg count after EXEC instruction. (closes #7254) Improve error message from assert_fails()
* patch 8.2.1919: assert_fails() setting emsg_silent changes normal executionv8.2.1919Bram Moolenaar2020-10-281-4/+7
| | | | | Problem: Assert_fails() setting emsg_silent changes normal execution. Solution: Use a separate flag in_assert_fails.
* patch 8.2.1653: expand('<stack>') does not include the final line numberv8.2.1653Bram Moolenaar2020-09-101-1/+1
| | | | | Problem: Expand('<stack>') does not include the final line number. Solution: Add the line nuber. (closes #6927)
* patch 8.2.1632: not checking the context of test_fails()v8.2.1632Bram Moolenaar2020-09-061-13/+25
| | | | | | Problem: Not checking the context of test_fails(). Solution: Add the line number and context arguments. Give error if assert_fails() argument types are wrong.
* patch 8.2.1631: test_fails() does not check the context of the line numberv8.2.1631Bram Moolenaar2020-09-061-9/+23
| | | | | Problem: test_fails() does not check the context of the line number. Solution: Use another argument to specify the context of the line number.
* patch 8.2.1484: flaky failure in assert_fails()v8.2.1484Bram Moolenaar2020-08-181-1/+2
| | | | | Problem: Flaky failure in assert_fails(). Solution: Only used fourth argument if there is a third argument.
* patch 8.2.1479: Vim9: error for list index uses wrong line numberv8.2.1479Bram Moolenaar2020-08-181-4/+25
| | | | | | Problem: Vim9: error for list index uses wrong line number. Solution: Set source line number. (closes #6724) Add a way to assert the line number of the error with assert_fails().
* patch 8.2.1297: when a test fails it's often not easy to see wherev8.2.1297Bram Moolenaar2020-07-261-1/+1
| | | | | | Problem: When a test fails it's often not easy to see what the call stack is. Solution: Add more entries from the call stack in the exception message.
* patch 8.2.1199: not all assert functions are fully testedv8.2.1199Bram Moolenaar2020-07-121-5/+6
| | | | | Problem: Not all assert functions are fully tested. Solution: Test more assert functions.
* patch 8.2.1183: assert_fails() checks the last error messagev8.2.1183Bram Moolenaar2020-07-111-4/+55
| | | | | | Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
* patch 8.2.0982: insufficient testing for reading/writing filesv8.2.0982Bram Moolenaar2020-06-151-0/+3
| | | | | | Problem: Insufficient testing for reading/writing files. Solution: Add more tests. (Yegappan Lakshmanan, closes #6257) Add "ui_delay" to test_override() and use it for the CTRL-O test.
* patch 8.2.0970: terminal properties are not available in Vim scriptv8.2.0970Bram Moolenaar2020-06-131-0/+3
| | | | | Problem: Terminal properties are not available in Vim script. Solution: Add the terminalprops() function.
* patch 8.2.0969: assert_equal() output for dicts is hard to figure outv8.2.0969Bram Moolenaar2020-06-131-2/+77
| | | | | Problem: Assert_equal() output for dicts is hard to figure out. Solution: Only show the different items.
* patch 8.2.0899: assert_equalfile() does not give a hint about the differencev8.2.0899Bram Moolenaar2020-06-041-6/+41
| | | | | Problem: Assert_equalfile() does not give a hint about the difference. Solution: Display the last seen text.
* patch 8.2.0893: assert_equalfile() does not take a third argumentv8.2.0893Bram Moolenaar2020-06-031-1/+10
| | | | | Problem: Assert_equalfile() does not take a third argument. Solution: Implement the third argument. (Gary Johnson)
* patch 8.2.0650: Vim9: script function can be deletedv8.2.0650Bram Moolenaar2020-04-271-1/+1
| | | | | | Problem: Vim9: script function can be deleted. Solution: Disallow deleting script function. Delete functions when sourcing a script again.
* patch 8.2.0517: Vim9: cannot separate "func" and "func(): void"v8.2.0517Bram Moolenaar2020-04-051-0/+1
| | | | | Problem: Vim9: cannot separate "func" and "func(): void". Solution: Use VAR_ANY for "any" and VAR_UNKNOWN for "no type".
* patch 8.2.0493: Vim9: some error messages not testedv8.2.0493Bram Moolenaar2020-04-011-0/+7
| | | | | Problem: Vim9: some error messages not tested. Solution: Add more tests. Fix uncovered bugs.
* patch 8.2.0299: Vim9: ISN_STORE with argument not testedv8.2.0299Bram Moolenaar2020-02-221-0/+12
| | | | | | Problem: Vim9: ISN_STORE with argument not tested. Some cases in tv2bool() not tested. Solution: Add tests. Add test_unknown() and test_void().
* patch 8.2.0250: test_clear_search_pat() is unusedv8.2.0250Bram Moolenaar2020-02-121-13/+0
| | | | | Problem: test_clear_search_pat() is unused. Solution: Remove the function. (Yegappan Lakshmanan, closes #5624)
* patch 8.2.0212: missing search/substitute pattern hardly testedv8.2.0212Bram Moolenaar2020-02-051-0/+13
| | | | | | Problem: Missing search/substitute pattern hardly tested. Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan, closes #5579)
* patch 8.2.0163: test hangs on MS-Windows consolev8.2.0163Bram Moolenaar2020-01-281-0/+6
| | | | | Problem: Test hangs on MS-Windows console. Solution: use feedkeys() instead of test_feedinput(). (Ken Takata)
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-2/+3
| | | | | Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
* patch 8.2.0111: VAR_SPECIAL is also used for booleansv8.2.0111Bram Moolenaar2020-01-111-1/+2
| | | | | Problem: VAR_SPECIAL is also used for booleans. Solution: Add VAR_BOOL for better type checking.
* patch 8.2.0056: execution stack is incomplete and inefficientv8.2.0056Bram Moolenaar2019-12-291-7/+9
| | | | | | Problem: Execution stack is incomplete and inefficient. Solution: Introduce a proper execution stack and use it instead of sourcing_name/sourcing_lnum. Create a string only when used.
* patch 8.2.0035: saving and restoring called_emsg is clumsyv8.2.0035Bram Moolenaar2019-12-231-3/+2
| | | | | Problem: Saving and restoring called_emsg is clumsy. Solution: Count the number of error messages.
* patch 8.1.2395: using old C style commentsv8.1.2395Bram Moolenaar2019-12-051-2/+2
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2171: mouse support not always availablev8.1.2171Bram Moolenaar2019-10-171-2/+0
| | | | | | Problem: Mouse support not always available. Solution: Enable mouse support also in tiny version. Do not define FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
* patch 8.1.1687: the evalfunc.c file is too bigv8.1.1687Bram Moolenaar2019-07-141-0/+945
Problem: The evalfunc.c file is too big. Solution: Move testing support to a separate file.