blob: 3f7cd0d7eed59dfb6dc4b425c5d216f6e2816ec7 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/lib/uuid/uuid.h"
#include <stdint.h>
#include <string>
#include <vector>
#include <gtest/gtest.h>
namespace {
TEST(UUID, Generate) {
for (int i = 0; i < 256; ++i) {
auto uuid = uuid::Generate();
EXPECT_TRUE(uuid::IsValid(uuid));
EXPECT_TRUE(uuid::IsValidOutputString(uuid));
}
}
} // namespace