Fixing version unit test
Этот коммит содержится в:
@@ -83,28 +83,23 @@ func TestIsCurrentVersion(t *testing.T) {
|
|||||||
|
|
||||||
func TestIsPreviousVersionsSupported(t *testing.T) {
|
func TestIsPreviousVersionsSupported(t *testing.T) {
|
||||||
|
|
||||||
// 1.4.0 CURRENT RELEASED VERSION
|
if !IsPreviousVersionsSupported(versionsWithoutHotFixes[0]) {
|
||||||
if !IsPreviousVersionsSupported(versions[0]) {
|
|
||||||
t.Fatal()
|
t.Fatal()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1.3.0
|
if !IsPreviousVersionsSupported(versionsWithoutHotFixes[1]) {
|
||||||
if !IsPreviousVersionsSupported(versions[1]) {
|
|
||||||
t.Fatal()
|
t.Fatal()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1.2.1
|
if !IsPreviousVersionsSupported(versionsWithoutHotFixes[2]) {
|
||||||
if !IsPreviousVersionsSupported(versions[2]) {
|
|
||||||
t.Fatal()
|
t.Fatal()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1.2.0
|
if IsPreviousVersionsSupported(versionsWithoutHotFixes[4]) {
|
||||||
if !IsPreviousVersionsSupported(versions[3]) {
|
|
||||||
t.Fatal()
|
t.Fatal()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1.1.0 NOT SUPPORTED
|
if IsPreviousVersionsSupported(versionsWithoutHotFixes[5]) {
|
||||||
if IsPreviousVersionsSupported(versions[4]) {
|
|
||||||
t.Fatal()
|
t.Fatal()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user