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 +++++++++++ Test/OrderingTests.cpp | 7 ------- Test/Test.vcxproj | 27 +++++++++++++++------------ 3 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 Test/Foo.cpp delete mode 100644 Test/OrderingTests.cpp (limited to 'Test') 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); +} diff --git a/Test/OrderingTests.cpp b/Test/OrderingTests.cpp deleted file mode 100644 index 6549be7..0000000 --- a/Test/OrderingTests.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "gtest/gtest.h" -#include "Randomizer.h" -#include "Memory.h" - -TEST(OrderingTests, TestJungleOrder) { - Randomizer _randomizer; -} diff --git a/Test/Test.vcxproj b/Test/Test.vcxproj index aaa311c..36b192a 100644 --- a/Test/Test.vcxproj +++ b/Test/Test.vcxproj @@ -19,7 +19,7 @@ - {98bc35b9-ee1a-4d77-85f2-adaa72db16f7} + {2208ee21-5366-4042-89d6-1a3c4bd79ad4} Win32Proj 10.0.17134.0 Application @@ -33,22 +33,22 @@ - C:\Users\localhost\Documents\GitHub\witness-randomizer\Source;$(IncludePath) + $(IncludePath) - C:\Users\localhost\Documents\GitHub\witness-randomizer\Source;$(IncludePath) + $(IncludePath) - - - - {ced79182-f36b-4d07-ad0e-249c15bfad73} + {5c019bea-e0b4-4215-825f-6a228cd3ae27} + + + @@ -72,14 +72,17 @@ - Use + NotUsing pch.h Disabled X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL - Level3 + Level2 + 4996 + true + C:\Users\localhost\Documents\GitHub\witness-randomizer\Source;%(AdditionalIncludeDirectories) true @@ -108,11 +111,11 @@ pch.h X64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreadedDLL - Level3 + Level2 ProgramDatabase - - 4996 + true + C:\Users\localhost\Documents\GitHub\witness-randomizer\Source;%(AdditionalIncludeDirectories) true -- cgit 1.4.1