| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Problem: Tests use assert_true(0) and assert_false(1) to report errors.
Solution: Use assert_report().
|
|
|
|
|
|
| |
Problem: Not enough test coverage in Insert mode.
Solution: Add lots of tests. Add test_override(). (Christian Brabandt,
closes #1521)
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: The error message from assert_notequal() is confusing.
Solution: Only mention the expected value.
|
|
|
|
|
| |
Problem: Internal error for assert_inrange(1, 1).
Solution: Adjust number of allowed arguments. (Dominique Pelle)
|
|
|
|
|
| |
Problem: Man test fails when run with the GUI.
Solution: Adjust for different behavior of GUI. Add assert_inrange().
|
|
|
|
|
| |
Problem: Can't assert for not equal and not matching.
Solution: Add assert_notmatch() and assert_notequal().
|
|
|
|
|
| |
Problem: In tests it's often useful to check if a pattern matches.
Solution: Add assert_match().
|
|
|
|
|
| |
Problem: Crash in assert_fails().
Solution: Check for NULL. (Dominique Pelle) Add a test.
|
|
|
|
|
| |
Problem: Crash when assert_equal() runs into a NULL string.
Solution: Check for NULL. (Dominique) Add a test.
|
|
|
|
|
| |
Problem: assert_false(v:false) reports an error. (Nikolai Pavlov)
Solution: Recognize v:true and v:false. (Closes #625)
|
|
|
|
|
| |
Problem: Crash when setting v:errors to a number.
Solution: Free the typval without assuming its type. (Yasuhiro Matsumoto)
|
|
|
|
|
|
| |
Problem: Wrong argument to assert_exception() causes a crash. (reported by
Coverity)
Solution: Check for NULL pointer. Add a test.
|
|
|
|
|
| |
Problem: Some developers are unhappy while running tests.
Solution: Add a test and some color.
|
|
|
|
|
|
|
|
| |
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.
|
|
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.
|