extra/haxelib_src/test/tests/integration/TestPath.hx
raw| 1 | package tests.integration; |
| 2 | |
| 3 | import haxe.io.Path; |
| 4 | using IntegrationTests; |
| 5 | using StringTools; |
| 6 | using Lambda; |
| 7 | |
| 8 | class TestPath extends IntegrationTests { |
| 9 | #if !system_haxelib |
| 10 | function testMain():Void { |
| 11 | var r = haxelib(["dev", "BadHaxelibJson", Path.join([IntegrationTests.projectRoot, "test/libraries/libBadHaxelibJson"])]).result(); |
| 12 | assertSuccess(r); |
| 13 | var r = haxelib(["path", "BadHaxelibJson"]).result(); |
| 14 | assertFail(r); |
| 15 | } |
| 16 | #end |
| 17 | } |