github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/pkg/couchdb/revision/rev_test.go (about)

     1  package revision
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestGeneration(t *testing.T) {
    10  	assert.Equal(t, 1, Generation("1-aaa"))
    11  	assert.Equal(t, 3, Generation("3-123"))
    12  	assert.Equal(t, 10, Generation("10-1f2"))
    13  }