Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
Loading...
Searching...
No Matches
FTestHelper Struct Reference

#include "TestHelper.h"

Static Public Member Functions

static FString PrettyPrintLeftShiftedNumber (int32 base, int32 shift)
 
static bool GetEqualityTestExpectation (int32 compareResult, int32 operatorMode)
 

Detailed Description

Provides helper methods for testing

Member Function Documentation

◆ GetEqualityTestExpectation()

static bool FTestHelper::GetEqualityTestExpectation ( int32  compareResult,
int32  operatorMode 
)
inlinestatic

Gets the expected boolean result of a in/equality comparison given the expected compare result and the comparison operator mode

Parameters
compareResultThe expected compare result (<0 for less, 0 for equal, >0 for greater)
operatorModeThe operator mode (0 ==, 1 !=, 2 <, 3 >, 4 <=, 5 >=)
Returns
The expected boolean result of the in/equality comparison

◆ PrettyPrintLeftShiftedNumber()

static FString FTestHelper::PrettyPrintLeftShiftedNumber ( int32  base,
int32  shift 
)
inlinestatic

Formats a left-shifted number to a string in the form (base<<shift)

Parameters
baseThe base number
shiftThe number of bits of shift
Returns
The formatted string

The documentation for this struct was generated from the following file: