diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/Foo.cpp | 11 | ||||
-rw-r--r-- | Test/OrderingTests.cpp | 7 | ||||
-rw-r--r-- | Test/Test.vcxproj | 27 |
3 files changed, 26 insertions, 19 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 | |||
4 | TEST(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 | } | ||
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 @@ | |||
1 | #include "gtest/gtest.h" | ||
2 | #include "Randomizer.h" | ||
3 | #include "Memory.h" | ||
4 | |||
5 | TEST(OrderingTests, TestJungleOrder) { | ||
6 | Randomizer _randomizer; | ||
7 | } | ||
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 @@ | |||
19 | </ProjectConfiguration> | 19 | </ProjectConfiguration> |
20 | </ItemGroup> | 20 | </ItemGroup> |
21 | <PropertyGroup Label="Globals"> | 21 | <PropertyGroup Label="Globals"> |
22 | <ProjectGuid>{98bc35b9-ee1a-4d77-85f2-adaa72db16f7}</ProjectGuid> | 22 | <ProjectGuid>{2208ee21-5366-4042-89d6-1a3c4bd79ad4}</ProjectGuid> |
23 | <Keyword>Win32Proj</Keyword> | 23 | <Keyword>Win32Proj</Keyword> |
24 | <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion> | 24 | <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion> |
25 | <ConfigurationType>Application</ConfigurationType> | 25 | <ConfigurationType>Application</ConfigurationType> |
@@ -33,22 +33,22 @@ | |||
33 | <ImportGroup Label="PropertySheets" /> | 33 | <ImportGroup Label="PropertySheets" /> |
34 | <PropertyGroup Label="UserMacros" /> | 34 | <PropertyGroup Label="UserMacros" /> |
35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
36 | <IncludePath>C:\Users\localhost\Documents\GitHub\witness-randomizer\Source;$(IncludePath)</IncludePath> | 36 | <IncludePath>$(IncludePath)</IncludePath> |
37 | </PropertyGroup> | 37 | </PropertyGroup> |
38 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | 38 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
39 | <IncludePath>C:\Users\localhost\Documents\GitHub\witness-randomizer\Source;$(IncludePath)</IncludePath> | 39 | <IncludePath>$(IncludePath)</IncludePath> |
40 | </PropertyGroup> | 40 | </PropertyGroup> |
41 | <ItemGroup> | 41 | <ItemGroup> |
42 | <ClCompile Include="OrderingTests.cpp" /> | ||
43 | </ItemGroup> | ||
44 | <ItemGroup> | ||
45 | <ProjectReference Include="..\Source\Source.vcxproj"> | 42 | <ProjectReference Include="..\Source\Source.vcxproj"> |
46 | <Project>{ced79182-f36b-4d07-ad0e-249c15bfad73}</Project> | 43 | <Project>{5c019bea-e0b4-4215-825f-6a228cd3ae27}</Project> |
47 | </ProjectReference> | 44 | </ProjectReference> |
48 | </ItemGroup> | 45 | </ItemGroup> |
49 | <ItemGroup> | 46 | <ItemGroup> |
50 | <None Include="packages.config" /> | 47 | <None Include="packages.config" /> |
51 | </ItemGroup> | 48 | </ItemGroup> |
49 | <ItemGroup> | ||
50 | <ClCompile Include="Foo.cpp" /> | ||
51 | </ItemGroup> | ||
52 | <ItemDefinitionGroup /> | 52 | <ItemDefinitionGroup /> |
53 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 53 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
54 | <ImportGroup Label="ExtensionTargets"> | 54 | <ImportGroup Label="ExtensionTargets"> |
@@ -72,14 +72,17 @@ | |||
72 | </ItemDefinitionGroup> | 72 | </ItemDefinitionGroup> |
73 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | 73 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
74 | <ClCompile> | 74 | <ClCompile> |
75 | <PrecompiledHeader>Use</PrecompiledHeader> | 75 | <PrecompiledHeader>NotUsing</PrecompiledHeader> |
76 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | 76 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> |
77 | <Optimization>Disabled</Optimization> | 77 | <Optimization>Disabled</Optimization> |
78 | <PreprocessorDefinitions>X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 78 | <PreprocessorDefinitions>X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
79 | <MinimalRebuild>true</MinimalRebuild> | 79 | <MinimalRebuild>true</MinimalRebuild> |
80 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | 80 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> |
81 | <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | 81 | <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> |
82 | <WarningLevel>Level3</WarningLevel> | 82 | <WarningLevel>Level2</WarningLevel> |
83 | <DisableSpecificWarnings>4996</DisableSpecificWarnings> | ||
84 | <TreatWarningAsError>true</TreatWarningAsError> | ||
85 | <AdditionalIncludeDirectories>C:\Users\localhost\Documents\GitHub\witness-randomizer\Source;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
83 | </ClCompile> | 86 | </ClCompile> |
84 | <Link> | 87 | <Link> |
85 | <GenerateDebugInformation>true</GenerateDebugInformation> | 88 | <GenerateDebugInformation>true</GenerateDebugInformation> |
@@ -108,11 +111,11 @@ | |||
108 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | 111 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> |
109 | <PreprocessorDefinitions>X64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 112 | <PreprocessorDefinitions>X64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
110 | <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | 113 | <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> |
111 | <WarningLevel>Level3</WarningLevel> | 114 | <WarningLevel>Level2</WarningLevel> |
112 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | 115 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> |
113 | <LanguageStandard> | ||
114 | </LanguageStandard> | ||
115 | <DisableSpecificWarnings>4996</DisableSpecificWarnings> | 116 | <DisableSpecificWarnings>4996</DisableSpecificWarnings> |
117 | <TreatWarningAsError>true</TreatWarningAsError> | ||
118 | <AdditionalIncludeDirectories>C:\Users\localhost\Documents\GitHub\witness-randomizer\Source;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
116 | </ClCompile> | 119 | </ClCompile> |
117 | <Link> | 120 | <Link> |
118 | <GenerateDebugInformation>true</GenerateDebugInformation> | 121 | <GenerateDebugInformation>true</GenerateDebugInformation> |