Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
static bool equal(const SkBitmap &a, const SkBitmap &b)
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.

13 {
14 {5.0402503619650929e-005, 4.3178054475078825e-005}
15};

◆ roughlyTestsCount

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

Definition at line 17 of file PathOpsTypesTest.cpp.