13
13
#include " test_common_macros.hpp"
14
14
#include " xtensor/xtensor.hpp"
15
15
#include " xtensor/xarray.hpp"
16
- // #include "xtensor/xfixed.hpp"
16
+ #include " xtensor/xfixed.hpp"
17
17
#include " xtensor/xview.hpp"
18
18
19
19
namespace xt
@@ -35,13 +35,13 @@ namespace xt
35
35
xt::xarray<size_t > a = {{9 , 9 , 9 }, {9 , 9 , 9 }};
36
36
xt::xtensor<size_t , 1 > b = {9 , 9 };
37
37
xt::xtensor<size_t , 2 > c = {{9 , 9 }, {9 , 9 }};
38
- // xt::xtensor_fixed<size_t, xt::xshape<2, 2>> d = {{9, 9}, {9, 9}};
38
+ xt::xtensor_fixed<size_t , xt::xshape<2 , 2 >> d = {{9 , 9 }, {9 , 9 }};
39
39
auto v = xt::view (c, 0 , xt::all ());
40
40
41
41
EXPECT_TRUE (sfinae_rank_basic_func (a) == 0ul );
42
42
EXPECT_TRUE (sfinae_rank_basic_func (b) == 0ul );
43
43
EXPECT_TRUE (sfinae_rank_basic_func (c) == 2ul );
44
- // EXPECT_TRUE(sfinae_rank_basic_func(d) == 2ul);
44
+ EXPECT_TRUE (sfinae_rank_basic_func (d) == 2ul );
45
45
EXPECT_TRUE (sfinae_rank_basic_func (v) == 0ul );
46
46
EXPECT_TRUE (sfinae_rank_basic_func (2ul * a) == 0ul );
47
47
EXPECT_TRUE (sfinae_rank_basic_func (2ul * b) == 0ul );
@@ -72,13 +72,13 @@ namespace xt
72
72
xt::xarray<size_t > a = {{9 , 9 , 9 }, {9 , 9 , 9 }};
73
73
xt::xtensor<size_t , 1 > b = {9 , 9 };
74
74
xt::xtensor<size_t , 2 > c = {{9 , 9 }, {9 , 9 }};
75
- // xt::xtensor_fixed<size_t, xt::xshape<2, 2>> d = {{9, 9}, {9, 9}};
75
+ xt::xtensor_fixed<size_t , xt::xshape<2 , 2 >> d = {{9 , 9 }, {9 , 9 }};
76
76
auto v = xt::view (c, 0 , xt::all ());
77
77
78
78
EXPECT_TRUE (sfinae_rank_func (a) == 0ul );
79
79
EXPECT_TRUE (sfinae_rank_func (b) == 1ul );
80
80
EXPECT_TRUE (sfinae_rank_func (c) == 2ul );
81
- // EXPECT_TRUE(sfinae_rank_func(d) == 2ul);
81
+ EXPECT_TRUE (sfinae_rank_func (d) == 2ul );
82
82
EXPECT_TRUE (sfinae_rank_func (v) == 0ul );
83
83
EXPECT_TRUE (sfinae_rank_func (2ul * a) == 0ul );
84
84
EXPECT_TRUE (sfinae_rank_func (2ul * b) == 0ul );
@@ -102,13 +102,13 @@ namespace xt
102
102
xt::xarray<size_t > a = {{9 , 9 , 9 }, {9 , 9 , 9 }};
103
103
xt::xtensor<size_t , 1 > b = {9 , 9 };
104
104
xt::xtensor<size_t , 2 > c = {{9 , 9 }, {9 , 9 }};
105
- // xt::xtensor_fixed<size_t, xt::xshape<2, 2>> d = {{9, 9}, {9, 9}};
105
+ xt::xtensor_fixed<size_t , xt::xshape<2 , 2 >> d = {{9 , 9 }, {9 , 9 }};
106
106
auto v = xt::view (c, 0 , xt::all ());
107
107
108
108
EXPECT_TRUE (sfinae_fixed_func (a) == false );
109
109
EXPECT_TRUE (sfinae_fixed_func (b) == true );
110
110
EXPECT_TRUE (sfinae_fixed_func (c) == true );
111
- // EXPECT_TRUE(sfinae_fixed_func(d) == 2ul);
111
+ EXPECT_TRUE (sfinae_fixed_func (d) == 2ul );
112
112
EXPECT_TRUE (sfinae_fixed_func (v) == false );
113
113
EXPECT_TRUE (sfinae_fixed_func (2ul * a) == false );
114
114
EXPECT_TRUE (sfinae_fixed_func (2ul * b) == false );
0 commit comments