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