summary refs log tree commit diff stats
path: root/Test/Foo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Test/Foo.cpp')
-rw-r--r--Test/Foo.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/Foo.cpp b/Test/Foo.cpp new file mode 100644 index 0000000..d9d155e --- /dev/null +++ b/Test/Foo.cpp
@@ -0,0 +1,11 @@
1#include "gtest/gtest.h"
2#include "Random.h"
3
4TEST(Foo, Bar) {
5 int random1 = Random::RandInt(0, 1 << 30);
6 int random2 = Random::RandInt(0, 1 << 30);
7 ASSERT_NE(random1, random2);
8 int random3 = Random::RandInt(random1, random2);
9 ASSERT_GE(random3, random1);
10 ASSERT_LT(random3, random2);
11}