kana / vim-vspec

Vim plugin: Testing framework for Vim script
http://www.vim.org/scripts/script.php?script_id=3012
222 stars 13 forks source link

Refactor failure test cases not to include anonymous function numbers #37

Closed kana closed 10 years ago

kana commented 10 years ago

Test cases to check failure messages contains stack traces like b:foo..b:bar..b:baz, line 1. Anonymous functions are written as magic numbers like 42..777..23, line 1. And these magic numbers are not consistent. Whenever the internal of vim-vspec is changed, these magic numbers are also changed randomly.

It's a boring task to modify the test cases for the changes of the magic numbers. So that it's better to exclude anonymous function numbers from test cases.

Possible approaches:

kana commented 10 years ago

So that it would be better to suppress the first few entries from stack traces instead of excluding anonymous function numbers.

For example,