blob: 6582b5ded1ba4f62aedf14fe710cd9d2a33b540e [file] [log] [blame]
#include "aos/vision/blob/transpose.h"
#include <algorithm>
#include <string>
#include "gtest/gtest.h"
#include "aos/vision/blob/test_utils.h"
namespace aos {
namespace vision {
TEST(TransposeTest, Tranpspose) {
RangeImage img = LoadFromTestData(20, R"(
-----------
----- ----
------------
-------------
------------
----------
------------
---------
)");
auto b = Transpose(img);
auto c = Transpose(b);
EXPECT_EQ(ShortDebugPrint({img}), ShortDebugPrint({c}));
}
} // namespace vision
} // namespace aos