~neovim-ppa/neovim-ppa/neovim

« back to all changes in this revision

Viewing changes to test/functional/legacy/expand_spec.lua

  • Committer: Justin M. Keyes
  • Author(s): prollings
  • Date: 2016-07-06 13:13:48 UTC
  • Revision ID: git-v1:6cee9d1a17177f4ccdf34283c6ed3ffaa98b32cc
vim-patch:7.4.1111 (#5004)

Problem:    test_expand fails on MS-Windows.
Solution:   Always use forward slashes.  Remove references to test27.

https://github.com/vim/vim/commit/f60b796fa9870bdfc4cdeb91653bac041916077d

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
        next Xdir?/*/file
41
41
        call assert_equal('Xdir3/Xdir4/file', expand('%'))
42
 
        next! Xdir?/*/nofile
43
 
        call assert_equal('Xdir?/*/nofile', expand('%'))
 
42
                                if has('unix')
 
43
                                        next! Xdir?/*/nofile
 
44
                                        call assert_equal('Xdir?/*/nofile', expand('%'))
 
45
                                endif
44
46
        " Edit another file, on MS-Windows the swap file would be in use and can't
45
47
        " be deleted
46
48
        edit foo