blob: 8d0d73da164c8823f83ea7b8f3c4386de000288e [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "cc_bindings_from_rs/test/crates_io/fastrand_cc_api.h"
#include "support/rs_std/rs_char.h"
namespace crubit {
namespace {
TEST(CratesIoTests, FastRand) {
fastrand::seed(123);
EXPECT_EQ(123, fastrand::get_seed());
EXPECT_EQ(uint32_t{'o'}, uint32_t{fastrand::lowercase()});
}
} // namespace
} // namespace crubit