summaryrefslogtreecommitdiff
path: root/src/testing.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.1511: crash when using wrong arg types to assert_match()v9.0.1511zeertzjq2023-05-061-11/+11
| | | | | Problem: Crash when using wrong arg types to assert_match(). Solution: Check for NULL pointer. (closes #12349)
* patch 9.0.1507: assert message is confusing with boolean resultv9.0.1507zeertzjq2023-05-041-28/+14
| | | | | | | Problem: Assert message is confusing with boolean result. assert_inrange() replaces message instead of adding it. Solution: Don't put quotes around expected boolean value. Append message for assert_inrange(). (closes #12342, closes #12341)
* patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected filev9.0.1390Yegappan Lakshmanan2023-03-071-2/+2
| | | | | | Problem: FOR_ALL_ macros are defined in an unexpected file. Solution: Move FOR_ALL_ macros to macros.h. Add FOR_ALL_HASHTAB_ITEMS. (Yegappan Lakshmanan, closes #12109)
* patch 9.0.1245: code is indented more than necessaryv9.0.1245Yegappan Lakshmanan2023-01-251-1/+3
| | | | | | Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11879)
* patch 9.0.1084: code handling low level MS-Windows events cannot be testedv9.0.1084Christopher Plewright2022-12-201-8/+37
| | | | | | Problem: Code handling low level MS-Windows events cannot be tested. Solution: Add test_mswin_event() and tests using it. (Christopher Plewright, closes #11622)
* patch 9.0.1031: Vim9 class is not implemented yetv9.0.1031Bram Moolenaar2022-12-081-0/+2
| | | | | Problem: Vim9 class is not implemented yet. Solution: Add very basic class support.
* patch 9.0.0846: using assert_fails() may cause hit-enter promptv9.0.0846Bram Moolenaar2022-11-091-3/+3
| | | | | Problem: Using assert_fails() may cause hit-enter prompt. Solution: Set no_wait_return. (closes #11522)
* patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar2022-09-171-2/+0
| | | | | Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
* patch 9.0.0404: crash when passing invalid arguments to assert_fails()v9.0.0404Bram Moolenaar2022-09-071-0/+9
| | | | | Problem: Crash when passing invalid arguments to assert_fails(). Solution: Check for NULL string.
* patch 9.0.0359: error message for wrong argument type is not specificv9.0.0359Yegappan Lakshmanan2022-09-021-89/+71
| | | | | | Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
* patch 9.0.0213: using freed memory with error in assert argumentv9.0.0213Bram Moolenaar2022-08-141-6/+12
| | | | | Problem: Using freed memory with error in assert argument. Solution: Make a copy of the error.
* patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar2022-07-231-21/+21
| | | | | Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
* patch 9.0.0058: Win32: cannot test low level eventsv9.0.0058Yegappan Lakshmanan2022-07-231-0/+10
| | | | | | Problem: Win32: cannot test low level events. Solution: Add "sendevent" to test_gui_event(). (Yegappan Lakshmanan, closes #10679)
* patch 9.0.0014: missing part of the test override changev9.0.0014Bram Moolenaar2022-06-301-0/+3
| | | | | Problem: Missing part of the test override change. Solution: Add the missing part.
* patch 8.2.5102: interrupt not caught in testv8.2.5102Bram Moolenaar2022-06-151-0/+1
| | | | | | Problem: Interrupt not caught in test. Solution: Consider an exception thrown in the current try/catch when got_int is set. Also catch early exit when not using try/catch.
* patch 8.2.4965: GUI: testing mouse move event depends on screen cell sizev8.2.4965Bram Moolenaar2022-05-161-0/+8
| | | | | Problem: GUI: testing mouse move event depends on screen cell size. Solution: Multiply the row and column with the screen cell size.
* patch 8.2.4902: mouse wheel scrolling is inconsistentv8.2.4902LemonBoy2022-05-071-0/+5
| | | | | Problem: Mouse wheel scrolling is inconsistent. Solution: Use the MS-Winows system setting. (closes #10368)
* patch 8.2.4683: verbose check with dict_find() to see if a key is presentv8.2.4683Yegappan Lakshmanan2022-04-041-19/+19
| | | | | Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
* patch 8.2.4674: cannot force getting MouseMove eventsv8.2.4674Ernie Rael2022-04-031-8/+21
| | | | | | Problem: Cannot force getting MouseMove events. Solution: Add the 'mousemoveevent' option with implementaiton for the GUI. (Ernie Rael, closes #10044)
* patch 8.2.4397: crash when using many composing characters in error messagev8.2.4397Bram Moolenaar2022-02-161-1/+1
| | | | | Problem: Crash when using many composing characters in error message. Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv().
* patch 8.2.4278: build with Athena GUI failsv8.2.4278Bram Moolenaar2022-02-011-0/+4
| | | | | Problem: Build with Athena GUI fails. (Elimar Riesebieter) Solution: Add #ifdef.
* patch 8.2.4276: separate test function for the GUI scrollbarv8.2.4276Yegappan Lakshmanan2022-01-311-44/+39
| | | | | Problem: Separate test function for the GUI scrollbar. Solution: Use test_gui_event(). (Yegappan Lakshmanan, closes #9674)
* patch 8.2.4263: no test for the GUI find/replace dialogv8.2.4263Yegappan Lakshmanan2022-01-301-13/+42
| | | | | | Problem: No test for the GUI find/replace dialog. Solution: Add a test function and a test. (Yegappan Lakshmanan, closes #9662)
* patch 8.2.4259: number of test functions for GUI events is growingv8.2.4259Yegappan Lakshmanan2022-01-301-83/+123
| | | | | | Problem: Number of test functions for GUI events is growing. Solution: Use one function with a dictionary. (Yegappan Lakshmanan, closes #9660)
* patch 8.2.4239: build fails with unusual configurationv8.2.4239Bram Moolenaar2022-01-281-2/+2
| | | | | Problem: Build fails with unusual configuration. Solution: Adjust #ifdef. (closes #9651)
* patch 8.2.4234: test_garbagecollect_now() does not check v:testingv8.2.4234Bram Moolenaar2022-01-271-1/+4
| | | | | Problem: test_garbagecollect_now() does not check v:testing as documented. Solution: Give an error if v:testing is not set.
* patch 8.2.4228: no tests for clicking in the GUI tablinev8.2.4228Yegappan Lakshmanan2022-01-271-0/+34
| | | | | | Problem: No tests for clicking in the GUI tabline. Solution: Add test functions to generate the events. Add tests using the functions. (Yegappan Lakshmanan, closes #9638)
* patch 8.2.4157: terminal test fails because Windows sets the titlev8.2.4157ichizok2022-01-201-0/+2
| | | | | | Problem: Terminal test fails because Windows sets the title. Solution: Add the "vterm_title" testing override and use it in the test. (Ozaki Kiichi, closes #9556)
* patch 8.2.4087: cannot test items from an autoload script easilyv8.2.4087Bram Moolenaar2022-01-131-0/+2
| | | | | Problem: Cannot test items from an autoload script easily. Solution: Add the "autoload" value for test_override().
* patch 8.2.4086: "cctx" argument of find_func_even_dead() is unusedv8.2.4086Bram Moolenaar2022-01-131-1/+1
| | | | | Problem: "cctx" argument of find_func_even_dead() is unused. Solution: Remove the argument.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-12/+12
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* 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.