Bram Moolenaar
34f8117dec
patch 8.2.4397: crash when using many composing characters in error message
...
Problem: Crash when using many composing characters in error message.
Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv().
2022-02-16 12:16:19 +00:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
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-27 22:00:44 +02:00
Yegappan Lakshmanan
a764e73d4f
patch 8.2.3221: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632 )
2021-07-25 15:57:32 +02:00
Yegappan Lakshmanan
7237cab8f1
patch 8.2.3036: Vim9: builtin function arguments not checked at compile time
...
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 )
2021-06-22 19:52:27 +02:00
Bram Moolenaar
631e8f9345
patch 8.2.1953: Vim9: extra "unknown" error after other error
...
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-11-04 15:07:16 +01:00
Bram Moolenaar
7707228aac
patch 8.2.1697: inconsistent capitalization of error messages
...
Problem: Inconsistent capitalization of error messages.
Solution: Always start with a capital.
2020-09-16 17:55:40 +02:00
Bram Moolenaar
44d6652d56
patch 8.2.1632: not checking the context of test_fails()
...
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-06 22:26:57 +02:00
Bram Moolenaar
e2e4075fad
patch 8.2.1593: tests do not check the error number properly
...
Problem: Tests do not check the error number properly.0
Solution: Add a colon after the error number. (closes #6869 )
2020-09-04 21:18:46 +02:00
Bram Moolenaar
6d91bcb4d2
patch 8.2.1432: various inconsistencies in test files
...
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-08-12 18:50:36 +02:00
Bram Moolenaar
7177da9dd4
patch 8.2.1199: not all assert functions are fully tested
...
Problem: Not all assert functions are fully tested.
Solution: Test more assert functions.
2020-07-12 23:09:20 +02:00
Bram Moolenaar
2b6ef856fb
patch 8.2.1184: some tests fail
...
Problem: Some tests fail.
Solution: Adjust tests for different assert_fails() behavior. Remove unused
variable.
2020-07-11 22:25:57 +02:00
Bram Moolenaar
4a021dfbee
patch 8.2.0969: assert_equal() output for dicts is hard to figure out
...
Problem: Assert_equal() output for dicts is hard to figure out.
Solution: Only show the different items.
2020-06-13 15:13:38 +02:00
Bram Moolenaar
30cc44a97f
patch 8.2.0899: assert_equalfile() does not give a hint about the difference
...
Problem: Assert_equalfile() does not give a hint about the difference.
Solution: Display the last seen text.
2020-06-04 16:52:40 +02:00
Bram Moolenaar
fb517bac23
patch 8.2.0893: assert_equalfile() does not take a third argument
...
Problem: Assert_equalfile() does not take a third argument.
Solution: Implement the third argument. (Gary Johnson)
2020-06-03 19:55:35 +02:00
Bram Moolenaar
7b293c730b
patch 8.2.0539: comparing two NULL list fails
...
Problem: Comparing two NULL list fails.
Solution: Change the order of comparing two lists.
2020-04-09 21:33:22 +02:00
Bram Moolenaar
ce90e36f59
patch 8.1.2011: more functions can be used as methods
...
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method. Make the window
command test faster.
2019-09-08 18:58:44 +02:00
Bram Moolenaar
e49fbff384
patch 8.1.1909: more functions can be used as methods
...
Problem: More functions can be used as methods.
Solution: Make a few more functions usable as a method.
2019-08-21 22:50:07 +02:00
Bram Moolenaar
24278d2407
patch 8.1.1861: only some assert functions can be used as a method
...
Problem: Only some assert functions can be used as a method.
Solution: Allow using most assert functions as a method.
2019-08-16 21:49:22 +02:00
Bram Moolenaar
7780e5c1c5
patch 8.1.1660: assert_fails() does not fail inside try/catch
...
Problem: Assert_fails() does not fail inside try/catch.
Solution: Set trylevel to zero. (Ozaki Kiichi, closes #4639 )
2019-07-10 22:04:48 +02:00
Bram Moolenaar
b0f94c1ff3
patch 8.1.1524: tests are silently skipped
...
Problem: Tests are silently skipped.
Solution: Throw an exception for skipped tests in more places.
2019-06-13 22:19:53 +02:00
Bram Moolenaar
38f08e76ac
patch 8.1.0958: compiling weird regexp pattern is very slow
...
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-02-20 22:04:32 +01:00
Bram Moolenaar
865767126e
patch 8.1.0819: a failed assert with a long string is hard to read
...
Problem: A failed assert with a long string is hard to read.
Solution: Shorten the assert message.
2019-01-25 20:48:33 +01:00
Bram Moolenaar
1307d1c003
patch 8.1.0460: assert_fails() does not take a message argument
...
Problem: assert_fails() does not take a message argument
Solution: Add the argument.
2018-10-07 20:16:49 +02:00
Bram Moolenaar
8903676d3d
patch 8.1.0044: if a test function exists Vim this may go unnoticed
...
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-06-12 14:58:39 +02:00
Bram Moolenaar
65a5464985
patch 8.0.1770: assert functions don't return anything
...
Problem: Assert functions don't return anything.
Solution: Return non-zero when the assertion fails.
2018-04-28 16:56:53 +02:00
Bram Moolenaar
d96ff16511
patch 8.0.1523: cannot write and read terminal screendumps
...
Problem: Cannot write and read terminal screendumps.
Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff().
Also add assert_equalfile().
2018-02-18 22:13:29 +01:00
Bram Moolenaar
b48e96f61c
patch 8.0.1510: cannot test if a command causes a beep
...
Problem: Cannot test if a command causes a beep.
Solution: Add assert_beeps().
2018-02-13 12:26:14 +01:00
Bram Moolenaar
37175409d7
patch 8.0.0478: tests use assert_true(0) and assert_false(1) to report errors
...
Problem: Tests use assert_true(0) and assert_false(1) to report errors.
Solution: Use assert_report().
2017-03-18 20:18:45 +01:00
Bram Moolenaar
eb992cb90f
patch 8.0.0440: not enough test coverage in Insert mode
...
Problem: Not enough test coverage in Insert mode.
Solution: Add lots of tests. Add test_override(). (Christian Brabandt,
closes #1521 )
2017-03-09 18:20:16 +01:00
Bram Moolenaar
c7b831ca15
patch 8.0.0254: error message of assert functions is sometimes incomplete
...
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-28 18:08:12 +01:00
Bram Moolenaar
5869cf060e
patch 8.0.0186: confusing error message from assert_notequal()
...
Problem: The error message from assert_notequal() is confusing.
Solution: Only mention the expected value.
2017-01-14 20:06:14 +01:00
Bram Moolenaar
3421566376
patch 8.0.0124
...
Problem: Internal error for assert_inrange(1, 1).
Solution: Adjust number of allowed arguments. (Dominique Pelle)
2016-12-04 13:37:41 +01:00
Bram Moolenaar
61c04493b0
patch 7.4.2095
...
Problem: Man test fails when run with the GUI.
Solution: Adjust for different behavior of GUI. Add assert_inrange().
2016-07-23 15:35:35 +02:00
Bram Moolenaar
b50e5f5686
patch 7.4.1703
...
Problem: Can't assert for not equal and not matching.
Solution: Add assert_notmatch() and assert_notequal().
2016-04-03 20:57:20 +02:00
Bram Moolenaar
ea6553bec3
patch 7.4.1663
...
Problem: In tests it's often useful to check if a pattern matches.
Solution: Add assert_match().
2016-03-27 15:13:38 +02:00
Bram Moolenaar
1abb502635
patch 7.4.1567
...
Problem: Crash in assert_fails().
Solution: Check for NULL. (Dominique Pelle) Add a test.
2016-03-15 13:33:55 +01:00
Bram Moolenaar
f155196444
patch 7.4.1565
...
Problem: Crash when assert_equal() runs into a NULL string.
Solution: Check for NULL. (Dominique) Add a test.
2016-03-15 12:55:58 +01:00
Bram Moolenaar
3712792637
patch 7.4.1271
...
Problem: assert_false(v:false) reports an error. (Nikolai Pavlov)
Solution: Recognize v:true and v:false. (Closes #625 )
2016-02-06 20:29:28 +01:00
Bram Moolenaar
a542c680a8
patch 7.4.1223
...
Problem: Crash when setting v:errors to a number.
Solution: Free the typval without assuming its type. (Yasuhiro Matsumoto)
2016-01-31 16:28:04 +01:00
Bram Moolenaar
da5dcd9366
patch 7.4.1136
...
Problem: Wrong argument to assert_exception() causes a crash. (reported by
Coverity)
Solution: Check for NULL pointer. Add a test.
2016-01-19 14:31:20 +01:00
Bram Moolenaar
2d820808cd
patch 7.4.1010
...
Problem: Some developers are unhappy while running tests.
Solution: Add a test and some color.
2015-12-31 20:46:39 +01:00
Bram Moolenaar
683fa185a4
patch 7.4.945
...
Problem: New style testing is incomplete.
Solution: Add the runtest script to the list of distributed files.
Add the new functions to the function overview.
Rename the functions to match Vim function style.
Move undolevels testing into a new style test script.
2015-11-30 21:38:24 +01:00
Bram Moolenaar
43345546ae
patch 7.4.944
...
Problem: Writing tests for Vim script is hard.
Solution: Add assertEqual(), assertFalse() and assertTrue() functions. Add
the v:errors variable. Add the runtest script. Add a first new
style test script.
2015-11-29 17:35:35 +01:00