OpenTTD Source 20241224-master-gee860a5c8e
math_func.cpp File Reference

Test functionality from core/math_func. More...

#include "../stdafx.h"
#include "../3rdparty/catch2/catch.hpp"
#include "../core/math_func.hpp"

Go to the source code of this file.

Functions

 TEST_CASE ("DivideApproxTest - Negative")
 
 TEST_CASE ("DivideApproxTest, Divide")
 
 TEST_CASE ("IntSqrtTest - Zero")
 
 TEST_CASE ("IntSqrtTest - FindSqRt")
 
 TEST_CASE ("ClampTo")
 
 TEST_CASE ("SoftClamp")
 

Detailed Description

Test functionality from core/math_func.

Definition in file math_func.cpp.

Function Documentation

◆ TEST_CASE() [1/6]

TEST_CASE ( "ClampTo"  )

Definition at line 45 of file math_func.cpp.

◆ TEST_CASE() [2/6]

TEST_CASE ( "DivideApproxTest - Negative"  )

Definition at line 16 of file math_func.cpp.

◆ TEST_CASE() [3/6]

TEST_CASE ( DivideApproxTest,
Divide"   
)

Definition at line 23 of file math_func.cpp.

◆ TEST_CASE() [4/6]

TEST_CASE ( "IntSqrtTest - FindSqRt"  )

Definition at line 36 of file math_func.cpp.

◆ TEST_CASE() [5/6]

TEST_CASE ( "IntSqrtTest - Zero"  )

Definition at line 31 of file math_func.cpp.

◆ TEST_CASE() [6/6]

TEST_CASE ( "SoftClamp"  )

Definition at line 90 of file math_func.cpp.