You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This pragma didn't work with our unity builds, and we moved away from it anyway. #rb michael.nicolella [CL 32322029 by neil henning in ue5-main branch]
30 lines
614 B
C++
30 lines
614 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Catch2Includes.h"
|
|
#include <AutoRTFM/AutoRTFM.h>
|
|
#include <unordered_set>
|
|
|
|
using namespace std;
|
|
|
|
TEST_CASE("UnorderedSet")
|
|
{
|
|
constexpr unsigned Count = 100;
|
|
unordered_set<unsigned> MySet;
|
|
AutoRTFM::Commit([&] ()
|
|
{
|
|
unordered_set<unsigned> MySetInner;
|
|
for (unsigned Index = Count; Index--;)
|
|
{
|
|
MySetInner.insert(Index);
|
|
}
|
|
|
|
MySet = MySetInner;
|
|
});
|
|
|
|
REQUIRE(MySet.size() == Count);
|
|
for (unsigned Index = Count; Index--;)
|
|
{
|
|
REQUIRE(MySet.count(Index) == 1);
|
|
}
|
|
}
|