#include "gtest/gtest.h"
#include "common/apply_permutation.h"
Go to the source code of this file.
|
| | TEST (apply_permutation, empty) |
| |
| | TEST (apply_permutation, reorder) |
| |
| | TEST (apply_permutation, bad_size) |
| |
| | TEST (apply_permutation, bad_permutation) |
| |
◆ TEST() [1/4]
| TEST |
( |
apply_permutation |
, |
|
|
bad_permutation |
|
|
) |
| |
Definition at line 65 of file apply_permutation.cpp.
67 std::vector<int> v = {8, 4, 6, 1, 7, 2, 4};
73 catch (
const std::exception &e) {}
#define ASSERT_FALSE(condition)
◆ TEST() [2/4]
| TEST |
( |
apply_permutation |
, |
|
|
bad_size |
|
|
) |
| |
Definition at line 47 of file apply_permutation.cpp.
49 std::vector<int> v_large = {8, 4, 6, 1, 7, 2, 4, 9};
50 std::vector<int> v_small = {8, 4, 6, 1, 7, 2};
56 catch (
const std::exception &e) {}
62 catch (
const std::exception &e) {}
◆ TEST() [3/4]
| TEST |
( |
apply_permutation |
, |
|
|
empty |
|
|
) |
| |
◆ TEST() [4/4]
| TEST |
( |
apply_permutation |
, |
|
|
reorder |
|
|
) |
| |
Definition at line 39 of file apply_permutation.cpp.
42 std::vector<int> v = {8, 4, 6, 1, 7, 2, 4};
44 ASSERT_EQ(v, std::vector<int>({1, 2, 4, 4, 6, 7, 8}));