uuid_test.go 423 B

12345678910111213141516171819202122
  1. /*
  2. * Public Domain Software
  3. *
  4. * I (Matthias Ladkau) am the author of the source code in this file.
  5. * I have placed the source code in this file in the public domain.
  6. *
  7. * For further information see: http://creativecommons.org/publicdomain/zero/1.0/
  8. */
  9. package cryptutil
  10. import (
  11. "fmt"
  12. "testing"
  13. )
  14. func TestUUID(t *testing.T) {
  15. if fmt.Sprint(GenerateUUID()) == "" {
  16. t.Error("Unexpected result")
  17. return
  18. }
  19. }