Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
assertions.hh File Reference
#include <gtest/gtest.h>

Go to the source code of this file.

Macros

#define EXPECT_EQ_SYMMETRICALLY(a, b)
#define EXPECT_NE_SYMMETRICALLY(a, b)

Macro Definition Documentation

◆ EXPECT_EQ_SYMMETRICALLY

#define EXPECT_EQ_SYMMETRICALLY ( a,
b )
Value:
do { \
EXPECT_EQ(a, b); \
EXPECT_EQ(b, a); \
} while (0)

EXPECT_EQ in both argument orders.

A comparison operator can treat its operands differently, for instance as a member function that runs on the left operand.

◆ EXPECT_NE_SYMMETRICALLY

#define EXPECT_NE_SYMMETRICALLY ( a,
b )
Value:
do { \
EXPECT_NE(a, b); \
EXPECT_NE(b, a); \
} while (0)

EXPECT_NE in both argument orders. See EXPECT_EQ_SYMMETRICALLY.