summaryrefslogtreecommitdiff
path: root/src/testdir/test_assert.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.0478: tests use assert_true(0) and assert_false(1) to report errorsv8.0.0478Bram Moolenaar2017-03-181-0/+6
| | | | | Problem: Tests use assert_true(0) and assert_false(1) to report errors. Solution: Use assert_report().
* patch 8.0.0440: not enough test coverage in Insert modev8.0.0440Bram Moolenaar2017-03-091-0/+8
| | | | | | Problem: Not enough test coverage in Insert mode. Solution: Add lots of tests. Add test_override(). (Christian Brabandt, closes #1521)
* patch 8.0.0254: error message of assert functions is sometimes incompletev8.0.0254Bram Moolenaar2017-01-281-0/+6
| | | | | | 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.
* patch 8.0.0186: confusing error message from assert_notequal()v8.0.0186Bram Moolenaar2017-01-141-1/+1
| | | | | Problem: The error message from assert_notequal() is confusing. Solution: Only mention the expected value.
* patch 8.0.0124v8.0.0124Bram Moolenaar2016-12-041-0/+2
| | | | | Problem: Internal error for assert_inrange(1, 1). Solution: Adjust number of allowed arguments. (Dominique Pelle)
* patch 7.4.2095v7.4.2095Bram Moolenaar2016-07-231-0/+13
| | | | | Problem: Man test fails when run with the GUI. Solution: Adjust for different behavior of GUI. Add assert_inrange().
* patch 7.4.1703v7.4.1703Bram Moolenaar2016-04-031-0/+25
| | | | | Problem: Can't assert for not equal and not matching. Solution: Add assert_notmatch() and assert_notequal().
* patch 7.4.1663v7.4.1663Bram Moolenaar2016-03-271-2/+14
| | | | | Problem: In tests it's often useful to check if a pattern matches. Solution: Add assert_match().
* patch 7.4.1567v7.4.1567Bram Moolenaar2016-03-151-0/+6
| | | | | Problem: Crash in assert_fails(). Solution: Check for NULL. (Dominique Pelle) Add a test.
* patch 7.4.1565v7.4.1565Bram Moolenaar2016-03-151-0/+15
| | | | | Problem: Crash when assert_equal() runs into a NULL string. Solution: Check for NULL. (Dominique) Add a test.
* patch 7.4.1271v7.4.1271Bram Moolenaar2016-02-061-0/+2
| | | | | Problem: assert_false(v:false) reports an error. (Nikolai Pavlov) Solution: Recognize v:true and v:false. (Closes #625)
* patch 7.4.1223v7.4.1223Bram Moolenaar2016-01-311-0/+9
| | | | | Problem: Crash when setting v:errors to a number. Solution: Free the typval without assuming its type. (Yasuhiro Matsumoto)
* patch 7.4.1136v7.4.1136Bram Moolenaar2016-01-191-0/+19
| | | | | | Problem: Wrong argument to assert_exception() causes a crash. (reported by Coverity) Solution: Check for NULL pointer. Add a test.
* patch 7.4.1010v7.4.1010Bram Moolenaar2015-12-311-0/+5
| | | | | Problem: Some developers are unhappy while running tests. Solution: Add a test and some color.
* patch 7.4.945v7.4.945Bram Moolenaar2015-11-301-9/+9
| | | | | | | | 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.
* patch 7.4.944v7.4.944Bram Moolenaar2015-11-291-0/+19
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.