summaryrefslogtreecommitdiff
path: root/src/testing.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.