Vincent Latombe | c14af95 | 2016-07-18 10:20:12 +0200 | [diff] [blame^] | 1 | #!/usr/bin/env bats |
| 2 | |
| 3 | load 'test_helper/bats-support/load' |
| 4 | load 'test_helper/bats-assert/load' |
| 5 | load test_helpers |
| 6 | |
| 7 | . $BATS_TEST_DIRNAME/../jenkins-support |
| 8 | |
| 9 | @test "versionLT" { |
| 10 | run versionLT 1.0 1.0 |
| 11 | assert_failure |
| 12 | run versionLT 1.0 1.1 |
| 13 | assert_success |
| 14 | run versionLT 1.1 1.0 |
| 15 | assert_failure |
| 16 | run versionLT 1.0-beta-1 1.0 |
| 17 | assert_success |
| 18 | run versionLT 1.0 1.0-beta-1 |
| 19 | assert_failure |
| 20 | run versionLT 1.0-alpha-1 1.0-beta-1 |
| 21 | assert_success |
| 22 | run versionLT 1.0-beta-1 1.0-alpha-1 |
| 23 | assert_failure |
| 24 | } |