From a828620c6447e8c51f6e9d1767eabe0fc5ade0a0 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Mon, 5 Nov 2018 08:15:23 -0800 Subject: moving stuff so I can test --- Test/Foo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Test/Foo.cpp (limited to 'Test/Foo.cpp') 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 @@ +#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); +} -- cgit 1.4.1