File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 27
27
#include " tiledarray.h"
28
28
#include " unit_test_config.h"
29
29
30
- const TensorFixture::range_type TensorFixture::r = make_range(81 );
31
-
32
30
BOOST_FIXTURE_TEST_SUITE (tensor_suite, TensorFixture, TA_UT_LABEL_SERIAL)
33
31
34
32
BOOST_AUTO_TEST_CASE(anatomy) {
Original file line number Diff line number Diff line change @@ -41,9 +41,11 @@ struct TensorFixture {
41
41
typedef TensorN::range_type::index_view_type index_view_type;
42
42
typedef TensorN::range_type range_type;
43
43
44
- static const range_type r;
44
+ const range_type r;
45
45
46
- TensorFixture () : t(r) { rand_fill (18 , t.size (), t.data ()); }
46
+ TensorFixture () : r(make_range(81 )), t(r) {
47
+ rand_fill (18 , t.size (), t.data ());
48
+ }
47
49
48
50
~TensorFixture () {}
49
51
Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ struct TensorUMFixture {
32
32
typedef TensorN::range_type::index_view_type* index_view_type;
33
33
typedef TensorN::range_type range_type;
34
34
35
- static const range_type r;
35
+ const range_type r;
36
36
37
- TensorUMFixture () : t(r) { rand_fill (18 , t.size (), t.data ()); }
37
+ TensorUMFixture () : r(make_range(81 )), t(r) {
38
+ rand_fill (18 , t.size (), t.data ());
39
+ }
38
40
39
41
~TensorUMFixture () {}
40
42
@@ -85,8 +87,6 @@ struct TensorUMFixture {
85
87
TensorN t;
86
88
};
87
89
88
- const TensorUMFixture::range_type TensorUMFixture::r = make_range(81 );
89
-
90
90
BOOST_FIXTURE_TEST_SUITE (tensor_um_suite, TensorUMFixture, TA_UT_LABEL_SERIAL)
91
91
92
92
BOOST_AUTO_TEST_CASE(default_constructor) {
You can’t perform that action at this time.
0 commit comments