package bootstrap import ( "testing" "github.com/stretchr/testify/assert" ) func TestSupportsFluxV024(t *testing.T) { // Where static version is 0.20.8 testcases := []struct { title string storeVersion string expected bool }{ { title: "Case 1 - Larger than static version", storeVersion: "0.20.9", expected: true, }, { title: "Case 1 - Same as static version", storeVersion: "0.20.8", expected: true, }, { title: "Case 1 - Less than static version", storeVersion: "0.20.2", expected: false, }, } for _, testcase := range testcases { supports := SupportsFluxV024(testcase.storeVersion) assert.Equal(t, testcase.expected, supports) } }