OpenTTD Source 20260206-master-g4d4e37dbf1
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"
#include "../safeguards.h"

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 47 of file math_func.cpp.

◆ TEST_CASE() [2/6]

TEST_CASE ( "DivideApproxTest - Negative" )

Definition at line 18 of file math_func.cpp.

◆ TEST_CASE() [3/6]

TEST_CASE ( " DivideApproxTest,
Divide"  )

Definition at line 25 of file math_func.cpp.

◆ TEST_CASE() [4/6]

TEST_CASE ( "IntSqrtTest - FindSqRt" )

Definition at line 38 of file math_func.cpp.

◆ TEST_CASE() [5/6]

TEST_CASE ( "IntSqrtTest - Zero" )

Definition at line 33 of file math_func.cpp.

◆ TEST_CASE() [6/6]

TEST_CASE ( "SoftClamp" )

Definition at line 92 of file math_func.cpp.