diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-09-21 13:33:29 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-09-21 13:33:29 -0300 |
commit | a6437041edd32f7981a65b45fccc27ce857c3ff6 (patch) | |
tree | 4bc3daf1b21694534d45232f62e886b026c645df /test/testing.lua | |
parent | 910fbe111c5f6e7e104604346ce67dbe22d15b27 (diff) | |
parent | 5fa1201dd0cb5ee5e29b8ebcb57b265335bbe3e9 (diff) | |
download | luarocks-a6437041edd32f7981a65b45fccc27ce857c3ff6.tar.gz luarocks-a6437041edd32f7981a65b45fccc27ce857c3ff6.tar.bz2 luarocks-a6437041edd32f7981a65b45fccc27ce857c3ff6.zip |
Merge branch 'master' into luarocks-3
Diffstat (limited to 'test/testing.lua')
-rw-r--r-- | test/testing.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testing.lua b/test/testing.lua index 50911fd4..63dead2b 100644 --- a/test/testing.lua +++ b/test/testing.lua | |||
@@ -441,5 +441,17 @@ local tests = { | |||
441 | return run "$luarocks install luarepl" | 441 | return run "$luarocks install luarepl" |
442 | and run "$luarocks doc luarepl" | 442 | and run "$luarocks doc luarepl" |
443 | end, | 443 | end, |
444 | |||
445 | -- Tests for https://github.com/keplerproject/luarocks/issues/375 | ||
446 | test_fetch_base_dir = function() | ||
447 | local fetch = require "luarocks.fetch" | ||
448 | |||
449 | return assert("v0.3" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3.zip")) | ||
450 | and assert("lua-compat-5.2" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.zip")) | ||
451 | and assert("lua-compat-5.2" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.tar.gz")) | ||
452 | and assert("lua-compat-5.2" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.tar.bz2")) | ||
453 | and assert("parser.moon" == fetch.url_to_base_dir("git://github.com/Cirru/parser.moon")) | ||
454 | and assert("v0.3" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3")) | ||
455 | end | ||
444 | 456 | ||
445 | } | 457 | } |