Flutter Engine
The Flutter Engine
Functions | Variables
PathOpsTypesTest.cpp File Reference
#include "src/pathops/SkPathOpsTypes.h"
#include "tests/Test.h"
#include <array>
#include <cstddef>

Go to the source code of this file.

Functions

 DEF_TEST (PathOpsRoughly, reporter)
 

Variables

static const double roughlyTests [][2]
 
static const size_t roughlyTestsCount = std::size(roughlyTests)
 

Function Documentation

◆ DEF_TEST()

DEF_TEST ( PathOpsRoughly  ,
reporter   
)

Definition at line 19 of file PathOpsTypesTest.cpp.

19 {
20 for (size_t index = 0; index < roughlyTestsCount; ++index) {
21 bool equal = RoughlyEqualUlps(roughlyTests[index][0], roughlyTests[index][1]);
23 }
24}
reporter
Definition: FontMgrTest.cpp:39
static bool equal(const SkBitmap &a, const SkBitmap &b)
Definition: ImageTest.cpp:1395
static const double roughlyTests[][2]
static const size_t roughlyTestsCount
bool RoughlyEqualUlps(float a, float b)
#define REPORTER_ASSERT(r, cond,...)
Definition: Test.h:286

Variable Documentation

◆ roughlyTests

const double roughlyTests[][2]
static
Initial value:
= {
{5.0402503619650929e-005, 4.3178054475078825e-005}
}

Definition at line 13 of file PathOpsTypesTest.cpp.

◆ roughlyTestsCount

const size_t roughlyTestsCount = std::size(roughlyTests)
static

Definition at line 17 of file PathOpsTypesTest.cpp.