blob: a5c2964e1ba5deebccb3f42378d25fa171742e0d [file] [log] [blame]
Parker Schuh0ff777c2017-02-19 15:01:13 -08001#include "aos/vision/blob/transpose.h"
2#include "aos/vision/blob/test_utils.h"
3
4#include <algorithm>
5#include <string>
6#include "gtest/gtest.h"
7
8namespace aos {
9namespace vision {
10
11TEST(TransposeTest, Tranpspose) {
12 RangeImage img = LoadFromTestData(20, R"(
13 -----------
14 ----- ----
15 ------------
16 -------------
17 ------------
18 ----------
19 ------------
20 ---------
21)");
22
23 auto b = Transpose(img);
24 auto c = Transpose(b);
25 EXPECT_EQ(ShortDebugPrint({img}), ShortDebugPrint({c}));
26}
27
28} // namespace vision
29} // namespace aos