summaryrefslogtreecommitdiffhomepage
path: root/test/file.rb
diff options
context:
space:
mode:
authorksss <[email protected]>2016-09-11 17:02:35 +0900
committerksss <[email protected]>2016-09-11 22:01:45 +0900
commitff845be72cc146dc8c16d408a5694e6587de5957 (patch)
tree4f34590b8e89469739b67a1b04687b377ba46ff2 /test/file.rb
parent7c9d941003b48d3551b28879598b3329c3b5d98b (diff)
downloadmruby-ff845be72cc146dc8c16d408a5694e6587de5957.tar.gz
mruby-ff845be72cc146dc8c16d408a5694e6587de5957.zip
Support Array argument
Diffstat (limited to 'test/file.rb')
-rw-r--r--test/file.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/file.rb b/test/file.rb
index 029454ea5..48a6eea9d 100644
--- a/test/file.rb
+++ b/test/file.rb
@@ -77,6 +77,8 @@ assert('File.join') do
assert_equal "/a/b/c", File.join("/a", "b", "c")
assert_equal "a/b/c/", File.join("a", "b", "c/")
assert_equal "a/b/c", File.join("a/", "/b/", "/c")
+ assert_equal "a/b/c", File.join(["a", "b", "c"])
+ assert_equal "a/b/c", File.join("a", ["b", ["c"]])
end
assert('File.realpath') do