github.com/twilio/twilio-go@v1.20.1/client/jwt/util/util_test.go (about)

     1  package util
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestMax(t *testing.T) {
    10  	assert.Equal(t, float64(5), Max(1, 5))
    11  	assert.Equal(t, float64(-40), Max(-100, -40))
    12  	assert.Equal(t, 5.5, Max(5.5, 5.1))
    13  }