summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_assert.vim
AgeCommit message (Collapse)Author
2023-05-06patch 9.0.1511: crash when using wrong arg types to assert_match()v9.0.1511zeertzjq
Problem: Crash when using wrong arg types to assert_match(). Solution: Check for NULL pointer. (closes #12349)
2023-05-04patch 9.0.1507: assert message is confusing with boolean resultv9.0.1507zeertzjq
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)
2023-01-28patch 9.0.1257: code style is not check in test scriptsv9.0.1257Bram Moolenaar
Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files.
2022-11-10patch 9.0.0854: no proper test for what 9.0.0846 fixesv9.0.0854zeertzjq
Problem: No proper test for what 9.0.0846 fixes. Solution: Run test in a terminal so that the hit-enter prompt can show up. (closes #11523)
2022-11-09patch 9.0.0846: using assert_fails() may cause hit-enter promptv9.0.0846Bram Moolenaar
Problem: Using assert_fails() may cause hit-enter prompt. Solution: Set no_wait_return. (closes #11522)
2022-09-22patch 9.0.0543: insufficient testing for assert and test functionsv9.0.0543Yegappan Lakshmanan
Problem: Insufficient testing for assert and test functions. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #11190)
2022-09-17patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar
Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-09-07patch 9.0.0404: crash when passing invalid arguments to assert_fails()v9.0.0404Bram Moolenaar
Problem: Crash when passing invalid arguments to assert_fails(). Solution: Check for NULL string.
2022-09-04patch 9.0.0380: deleting files in tests is a hassleBram Moolenaar
Problem: Deleting files in tests is a hassle. Solution: Use the new 'D' flag of writefile().
2022-09-02patch 9.0.0359: error message for wrong argument type is not specificv9.0.0359Yegappan Lakshmanan
Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
2022-08-14patch 9.0.0213: using freed memory with error in assert argumentv9.0.0213Bram Moolenaar
Problem: Using freed memory with error in assert argument. Solution: Make a copy of the error.
2022-02-16patch 8.2.4397: crash when using many composing characters in error messagev8.2.4397Bram Moolenaar
Problem: Crash when using many composing characters in error message. Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv().
2021-07-27patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan
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)
2021-07-25patch 8.2.3221: Vim9: argument types are not checked at compile timev8.2.3221Yegappan Lakshmanan
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
2021-06-22patch 8.2.3036: Vim9: builtin function arguments not checked at compile timev8.2.3036Yegappan Lakshmanan
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)
2020-11-04patch 8.2.1953: Vim9: extra "unknown" error after other errorv8.2.1953Bram Moolenaar
Problem: Vim9: extra "unknown" error after other error. Solution: Restore did_emsg count after EXEC instruction. (closes #7254) Improve error message from assert_fails()
2020-09-16patch 8.2.1697: inconsistent capitalization of error messagesv8.2.1697Bram Moolenaar
Problem: Inconsistent capitalization of error messages. Solution: Always start with a capital.
2020-09-06patch 8.2.1632: not checking the context of test_fails()v8.2.1632Bram Moolenaar
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.
2020-09-04patch 8.2.1593: tests do not check the error number properlyv8.2.1593Bram Moolenaar
Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes #6869)
2020-08-12patch 8.2.1432: various inconsistencies in test filesv8.2.1432Bram Moolenaar
Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
2020-07-12patch 8.2.1199: not all assert functions are fully testedv8.2.1199Bram Moolenaar
Problem: Not all assert functions are fully tested. Solution: Test more assert functions.
2020-07-11patch 8.2.1184: some tests failv8.2.1184Bram Moolenaar
Problem: Some tests fail. Solution: Adjust tests for different assert_fails() behavior. Remove unused variable.
2020-06-13patch 8.2.0969: assert_equal() output for dicts is hard to figure outv8.2.0969Bram Moolenaar
Problem: Assert_equal() output for dicts is hard to figure out. Solution: Only show the different items.
2020-06-04patch 8.2.0899: assert_equalfile() does not give a hint about the differencev8.2.0899Bram Moolenaar
Problem: Assert_equalfile() does not give a hint about the difference. Solution: Display the last seen text.
2020-06-03patch 8.2.0893: assert_equalfile() does not take a third argumentv8.2.0893Bram Moolenaar
Problem: Assert_equalfile() does not take a third argument. Solution: Implement the third argument. (Gary Johnson)
2020-04-09patch 8.2.0539: comparing two NULL list failsv8.2.0539Bram Moolenaar
Problem: Comparing two NULL list fails. Solution: Change the order of comparing two lists.
2019-09-08patch 8.1.2011: more functions can be used as methodsv8.1.2011Bram Moolenaar
Problem: More functions can be used as methods. Solution: Make various functions usable as a method. Make the window command test faster.
2019-08-21patch 8.1.1909: more functions can be used as methodsv8.1.1909Bram Moolenaar
Problem: More functions can be used as methods. Solution: Make a few more functions usable as a method.
2019-08-16patch 8.1.1861: only some assert functions can be used as a methodv8.1.1861Bram Moolenaar
Problem: Only some assert functions can be used as a method. Solution: Allow using most assert functions as a method.
2019-07-10patch 8.1.1660: assert_fails() does not fail inside try/catchv8.1.1660Bram Moolenaar
Problem: Assert_fails() does not fail inside try/catch. Solution: Set trylevel to zero. (Ozaki Kiichi, closes #4639)
2019-06-13patch 8.1.1524: tests are silently skippedv8.1.1524Bram Moolenaar
Problem: Tests are silently skipped. Solution: Throw an exception for skipped tests in more places.
2019-02-20patch 8.1.0958: compiling weird regexp pattern is very slowv8.1.0958Bram Moolenaar
Problem: Compiling weird regexp pattern is very slow. Solution: When reallocating post list increase size by 50%. (Kuang-che Wu, closes #4012) Make assert_inrange() accept float values.
2019-01-25patch 8.1.0819: a failed assert with a long string is hard to readv8.1.0819Bram Moolenaar
Problem: A failed assert with a long string is hard to read. Solution: Shorten the assert message.
2018-10-07patch 8.1.0460: assert_fails() does not take a message argumentv8.1.0460Bram Moolenaar
Problem: assert_fails() does not take a message argument Solution: Add the argument.
2018-06-12patch 8.1.0044: if a test function exists Vim this may go unnoticedv8.1.0044Bram Moolenaar
Problem: If a test function exists Vim this may go unnoticed. Solution: Check for a test funtion quitting Vim. Fix tests that did exit Vim.
2018-04-28patch 8.0.1770: assert functions don't return anythingv8.0.1770Bram Moolenaar
Problem: Assert functions don't return anything. Solution: Return non-zero when the assertion fails.
2018-02-18patch 8.0.1523: cannot write and read terminal screendumpsv8.0.1523Bram Moolenaar
Problem: Cannot write and read terminal screendumps. Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff(). Also add assert_equalfile().
2018-02-13patch 8.0.1510: cannot test if a command causes a beepv8.0.1510Bram Moolenaar
Problem: Cannot test if a command causes a beep. Solution: Add assert_beeps().
2017-03-18patch 8.0.0478: tests use assert_true(0) and assert_false(1) to report errorsv8.0.0478Bram Moolenaar
Problem: Tests use assert_true(0) and assert_false(1) to report errors. Solution: Use assert_report().
2017-03-09patch 8.0.0440: not enough test coverage in Insert modev8.0.0440Bram Moolenaar
Problem: Not enough test coverage in Insert mode. Solution: Add lots of tests. Add test_override(). (Christian Brabandt, closes #1521)
2017-01-28patch 8.0.0254: error message of assert functions is sometimes incompletev8.0.0254Bram Moolenaar
Problem: When using an assert function one can either specify a message or get a message about what failed, not both. Solution: Concatenate the error with the message.
2017-01-14patch 8.0.0186: confusing error message from assert_notequal()v8.0.0186Bram Moolenaar
Problem: The error message from assert_notequal() is confusing. Solution: Only mention the expected value.
2016-12-04patch 8.0.0124v8.0.0124Bram Moolenaar
Problem: Internal error for assert_inrange(1, 1). Solution: Adjust number of allowed arguments. (Dominique Pelle)
2016-07-23patch 7.4.2095v7.4.2095Bram Moolenaar
Problem: Man test fails when run with the GUI. Solution: Adjust for different behavior of GUI. Add assert_inrange().
2016-04-03patch 7.4.1703v7.4.1703Bram Moolenaar
Problem: Can't assert for not equal and not matching. Solution: Add assert_notmatch() and assert_notequal().
2016-03-27patch 7.4.1663v7.4.1663Bram Moolenaar
Problem: In tests it's often useful to check if a pattern matches. Solution: Add assert_match().
2016-03-15patch 7.4.1567v7.4.1567Bram Moolenaar
Problem: Crash in assert_fails(). Solution: Check for NULL. (Dominique Pelle) Add a test.
2016-03-15patch 7.4.1565v7.4.1565Bram Moolenaar
Problem: Crash when assert_equal() runs into a NULL string. Solution: Check for NULL. (Dominique) Add a test.
2016-02-06patch 7.4.1271v7.4.1271Bram Moolenaar
Problem: assert_false(v:false) reports an error. (Nikolai Pavlov) Solution: Recognize v:true and v:false. (Closes #625)
2016-01-31patch 7.4.1223v7.4.1223Bram Moolenaar
Problem: Crash when setting v:errors to a number. Solution: Free the typval without assuming its type. (Yasuhiro Matsumoto)