diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-04-01 17:44:20 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-03 10:32:41 -0300 |
commit | 865e3280a8020d005ba462650f6479af815684a3 (patch) | |
tree | c23e5627750b688b7a67821fdbcf6924a39f9dcb /test | |
parent | 955d6a29496d9f7902e95f4a2cc01fedd56e4a21 (diff) | |
download | rneovim-865e3280a8020d005ba462650f6479af815684a3.tar.gz rneovim-865e3280a8020d005ba462650f6479af815684a3.tar.bz2 rneovim-865e3280a8020d005ba462650f6479af815684a3.zip |
Fix seperator->separator, path_tail_with_separator->path_tail_with_sep.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/path.moon | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/unit/path.moon b/test/unit/path.moon index 8e153b66bf..cf132a94ab 100644 --- a/test/unit/path.moon +++ b/test/unit/path.moon @@ -8,7 +8,7 @@ typedef enum file_comparison { } FileComparison; FileComparison path_full_compare(char_u *s1, char_u *s2, int checkname); char_u *path_tail(char_u *fname); -char_u *path_tail_with_seperator(char_u *fname); +char_u *path_tail_with_sep(char_u *fname); char_u *path_next_component(char_u *fname); ]] @@ -65,27 +65,27 @@ describe 'path function', -> it 'returns an empty string if file ends in a slash', -> eq '', path_tail 'directory/' - describe 'path_tail_with_seperator', -> - path_tail_with_seperator = (file) -> - res = path.path_tail_with_seperator (to_cstr file) + describe 'path_tail_with_sep', -> + path_tail_with_sep = (file) -> + res = path.path_tail_with_sep (to_cstr file) neq NULL, res ffi.string res it 'returns the tail of a file together with its seperator', -> - eq '///file.txt', path_tail_with_seperator 'directory///file.txt' + eq '///file.txt', path_tail_with_sep 'directory///file.txt' it 'returns an empty string when given an empty file name', -> - eq '', path_tail_with_seperator '' + eq '', path_tail_with_sep '' it 'returns only the seperator if there is a traling seperator', -> - eq '/', path_tail_with_seperator 'some/directory/' + eq '/', path_tail_with_sep 'some/directory/' it 'cuts a leading seperator', -> - eq 'file.txt', path_tail_with_seperator '/file.txt' - eq '', path_tail_with_seperator '/' + eq 'file.txt', path_tail_with_sep '/file.txt' + eq '', path_tail_with_sep '/' it 'returns the whole file name if there is no seperator', -> - eq 'file.txt', path_tail_with_seperator 'file.txt' + eq 'file.txt', path_tail_with_sep 'file.txt' describe 'path_next_component', -> path_next_component = (file) -> |