blob: d9d155e3a3538d674963f0e0f06930148f124900 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include "gtest/gtest.h"
#include "Random.h"
TEST(Foo, Bar) {
int random1 = Random::RandInt(0, 1 << 30);
int random2 = Random::RandInt(0, 1 << 30);
ASSERT_NE(random1, random2);
int random3 = Random::RandInt(random1, random2);
ASSERT_GE(random3, random1);
ASSERT_LT(random3, random2);
}
|