diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-03-03 13:36:38 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-03-03 13:36:38 +0000 |
commit | 93f936c9e3531d2f2dc63f2262cd8069097238a8 (patch) | |
tree | d97eb060b69358a4fec2cda2bde32b6371647a7b /eval/src/tests/eval/fast_value | |
parent | 2d5116489de2695acfe7bd7928e65f369ce068f5 (diff) |
use CellTypeUtils::list_types to loop over possible cell types in tests
Diffstat (limited to 'eval/src/tests/eval/fast_value')
-rw-r--r-- | eval/src/tests/eval/fast_value/fast_value_test.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/eval/src/tests/eval/fast_value/fast_value_test.cpp b/eval/src/tests/eval/fast_value/fast_value_test.cpp index bb268a386ac..70c534b2010 100644 --- a/eval/src/tests/eval/fast_value/fast_value_test.cpp +++ b/eval/src/tests/eval/fast_value/fast_value_test.cpp @@ -159,9 +159,8 @@ const std::vector<GenSpec> layouts = { TEST(FastValueBuilderFactoryTest, fast_values_can_be_copied) { auto factory = FastValueBuilderFactory::get(); for (const auto &layout: layouts) { - for (TensorSpec expect : { layout.cpy().cells_float(), - layout.cpy().cells_double() }) - { + for (CellType ct : CellTypeUtils::list_types()) { + TensorSpec expect = layout.cpy().cells(ct); std::unique_ptr<Value> value = value_from_spec(expect, factory); std::unique_ptr<Value> copy = factory.copy(*value); TensorSpec actual = spec_from_value(*copy); |