diff options
| author | ksss <[email protected]> | 2016-09-11 17:02:35 +0900 |
|---|---|---|
| committer | ksss <[email protected]> | 2016-09-11 22:01:45 +0900 |
| commit | ff845be72cc146dc8c16d408a5694e6587de5957 (patch) | |
| tree | 4f34590b8e89469739b67a1b04687b377ba46ff2 /test | |
| parent | 7c9d941003b48d3551b28879598b3329c3b5d98b (diff) | |
| download | mruby-ff845be72cc146dc8c16d408a5694e6587de5957.tar.gz mruby-ff845be72cc146dc8c16d408a5694e6587de5957.zip | |
Support Array argument
Diffstat (limited to 'test')
| -rw-r--r-- | test/file.rb | 2 |
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 |
