aboutsummaryrefslogtreecommitdiff
path: root/test/unit/os
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/unit/os
parent168575f3f73f79185db0abdb91be364c0d0f29f9 (diff)
downloadrneovim-5b3b3fd3ed4372866730ae857e8c09d6e5d1167d.tar.gz
rneovim-5b3b3fd3ed4372866730ae857e8c09d6e5d1167d.tar.bz2
rneovim-5b3b3fd3ed4372866730ae857e8c09d6e5d1167d.zip
spelling fixes #827
Diffstat (limited to 'test/unit/os')
-rw-r--r--test/unit/os/env.moon2
-rw-r--r--test/unit/os/fs.moon8
2 files changed, 5 insertions, 5 deletions
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