open-consul/command/agent/event_endpoint_test.go

15 lines
237 B
Go
Raw Normal View History

2014-08-28 20:42:07 +00:00
package agent
import (
"testing"
)
func TestUUIDToUint64(t *testing.T) {
inp := "cb9a81ad-fff6-52ac-92a7-5f70687805ec"
// Output value was computed using python
if uuidToUint64(inp) != 6430540886266763072 {
t.Fatalf("bad")
}
}