aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWill Stamper <epmatsw@gmail.com>2014-06-08 13:30:44 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-06-12 20:26:35 -0400
commit5b3b3fd3ed4372866730ae857e8c09d6e5d1167d (patch)
treee339a78f58924c5001633c394078d1c21669f09a /test
parent168575f3f73f79185db0abdb91be364c0d0f29f9 (diff)
downloadrneovim-5b3b3fd3ed4372866730ae857e8c09d6e5d1167d.tar.gz
rneovim-5b3b3fd3ed4372866730ae857e8c09d6e5d1167d.tar.bz2
rneovim-5b3b3fd3ed4372866730ae857e8c09d6e5d1167d.zip
spelling fixes #827
Diffstat (limited to 'test')
-rw-r--r--test/unit/formatc.lua2
-rw-r--r--test/unit/os/env.moon2
-rw-r--r--test/unit/os/fs.moon8
-rw-r--r--test/unit/path.moon10
-rw-r--r--test/unit/preprocess.moon2
-rw-r--r--test/unit/set.moon2
6 files changed, 13 insertions, 13 deletions
diff --git a/test/unit/formatc.lua b/test/unit/formatc.lua
index 64e651e8da..e63ff369f2 100644
--- a/test/unit/formatc.lua
+++ b/test/unit/formatc.lua
@@ -36,7 +36,7 @@ local tokens = P { "tokens";
-- Single line comment
line_comment = Ct(P"//" * C((1 - V"newline")^0) * Cc"comment_line"),
- -- Single platform independant line break which increments line number
+ -- Single platform independent line break which increments line number
newline = (P"\r\n" + P"\n\r" + S"\r\n") * (Cp() * Carg(1)) / function(pos, state)
state.line = state.line + 1
state.line_start = pos
diff --git a/test/unit/os/env.moon b/test/unit/os/env.moon
index 545c1e84db..43fd663d9a 100644
--- a/test/unit/os/env.moon
+++ b/test/unit/os/env.moon
@@ -93,7 +93,7 @@ describe 'env function', ->
pid = tonumber (stat_str\match '%d+')
eq pid, tonumber env.os_get_pid!
else
- -- /proc is not avaliable on all systems, test if pid is nonzero.
+ -- /proc is not available on all systems, test if pid is nonzero.
eq true, (env.os_get_pid! > 0)
describe 'os_get_hostname', ->
diff --git a/test/unit/os/fs.moon b/test/unit/os/fs.moon
index d4d82661a3..7f61145501 100644
--- a/test/unit/os/fs.moon
+++ b/test/unit/os/fs.moon
@@ -283,7 +283,7 @@ describe 'fs function', ->
fs.os_rmdir (to_cstr path)
describe 'os_mkdir', ->
- it 'returns non-zero when given a already existing directory', ->
+ it 'returns non-zero when given an already existing directory', ->
mode = ffi.C.kS_IRUSR + ffi.C.kS_IWUSR + ffi.C.kS_IXUSR
neq 0, (os_mkdir 'unit-test-directory', mode)
@@ -315,7 +315,7 @@ describe 'fs function', ->
file_info[0].stat.st_ino > 0 and file_info[0].stat.st_dev > 0
describe 'os_get_file_info', ->
- it 'returns false if given an non-existing file', ->
+ it 'returns false if given a non-existing file', ->
file_info = file_info_new!
assert.is_false (fs.os_get_file_info '/non-existent', file_info)
@@ -334,7 +334,7 @@ describe 'fs function', ->
eq ffi.C.kS_IFREG, (bit.band mode, ffi.C.kS_IFMT)
describe 'os_get_file_info_link', ->
- it 'returns false if given an non-existing file', ->
+ it 'returns false if given a non-existing file', ->
file_info = file_info_new!
assert.is_false (fs.os_get_file_info_link '/non-existent', file_info)
@@ -357,7 +357,7 @@ describe 'fs function', ->
file_info = file_info_new!
assert.is_false (fs.os_get_file_info_fd -1, file_info)
- it 'returns true if given an file descriptor and fills file_info', ->
+ it 'returns true if given a file descriptor and fills file_info', ->
file_info = file_info_new!
path = 'unit-test-directory/test.file'
fd = ffi.C.open path, 0
diff --git a/test/unit/path.moon b/test/unit/path.moon
index 20bef4071c..762bad09a2 100644
--- a/test/unit/path.moon
+++ b/test/unit/path.moon
@@ -64,20 +64,20 @@ describe 'path function', ->
neq NULL, res
ffi.string res
- it 'returns the tail of a file together with its seperator', ->
+ it 'returns the tail of a file together with its separator', ->
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_sep ''
- it 'returns only the seperator if there is a traling seperator', ->
+ it 'returns only the separator if there is a trailing separator', ->
eq '/', path_tail_with_sep 'some/directory/'
- it 'cuts a leading seperator', ->
+ it 'cuts a leading separator', ->
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', ->
+ it 'returns the whole file name if there is no separator', ->
eq 'file.txt', path_tail_with_sep 'file.txt'
describe 'path_next_component', ->
@@ -89,7 +89,7 @@ describe 'path function', ->
it 'returns', ->
eq 'directory/file.txt', path_next_component 'some/directory/file.txt'
- it 'returns empty string if given file contains no seperator', ->
+ it 'returns empty string if given file contains no separator', ->
eq '', path_next_component 'file.txt'
describe 'path_shorten_fname', ->
diff --git a/test/unit/preprocess.moon b/test/unit/preprocess.moon
index cf98ac3c8b..aa74b8ce24 100644
--- a/test/unit/preprocess.moon
+++ b/test/unit/preprocess.moon
@@ -38,7 +38,7 @@ parse_make_deps = (deps) ->
-- remove redundant spaces
deps = deps\gsub(" +", " ")
- -- split acording to token (space in this case)
+ -- split according to token (space in this case)
headers = {}
for token in deps\gmatch("[^%s]+")
-- headers[token] = true
diff --git a/test/unit/set.moon b/test/unit/set.moon
index daa312a2f4..affbd5c29a 100644
--- a/test/unit/set.moon
+++ b/test/unit/set.moon
@@ -27,7 +27,7 @@ class Set
for k,v in pairs(t)
@add(v)
- -- substracts the argument Set from this Set
+ -- subtracts the argument Set from this Set
diff: (other) =>
if other\size! > @size!
-- this set is smaller than the other set