hub/commands/compare_test.go

15 строки
249 B
Go

package commands
import (
"github.com/bmizerany/assert"
"testing"
)
func TestParseRange(t *testing.T) {
s := "1.0..2.0"
assert.Equal(t, "1.0...2.0", parseCompareRange(s))
s = "1.0...2.0"
assert.Equal(t, "1.0...2.0", parseCompareRange(s))
}