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

Fix tests about vspec#pretty_string not to fail on Travis CI #40

Closed kana closed 10 years ago

kana commented 10 years ago

Tests about vspec#pretty_string are failed on Travis CI.

t/failure-messages-with-special-characters.t .. 1/?
not ok 1
# --- /dev/fd/62  2014-03-16 09:40:41.995094427 +0000
# +++ /dev/fd/61  2014-03-16 09:40:41.995094427 +0000
# @@ -20,6 +20,6 @@
#  #     Expected value: "foo\\\\bar"
#  not ok 6 - vspec shows strings with other special characters in a decodable style
#  # Expected "foo\x80\X7fbar" ==# 'foo\x80\X7fbar'
# -#       Actual value: "foo\x80\x7Fbar"
# +#       Actual value: "foo<80>\x7Fbar"
#  #     Expected value: "foo\\x80\\X7fbar"
#  1..6

But the tests are not failed on my machine. It might be caused by 'isprint' (which has a different default value based on the current platform) and/or 'encoding'. And I suspect both options have different values to the ones on my machine.

kana commented 10 years ago

TODO: Check the result of :scriptnames, 'isprint', 'encoding' and $LANG on Travis CI. Travis CI might has a system-wide vimrc or a special $LANG.

kana commented 10 years ago
kana commented 10 years ago

Fixed.