diff options
author | Jacques Lucke <jacques@blender.org> | 2020-08-05 18:18:56 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-08-05 18:19:02 +0300 |
commit | f3acfc97d933b58c27580a7192d7bffc49e512e8 (patch) | |
tree | d06db9a7449c879a6ee1a17f195e2c349aeb9bf7 /source/blender/functions/tests/FN_multi_function_test.cc | |
parent | b3d35d20397c03e0b493c9766300506820e8466d (diff) |
Functions: fix multi function test
There were two issues. First, I made a mistake when I switched from unsigned
to signed integers. Second, two classes with the same name were defined in
separate files. Those classes are in an anonymus namespace now, so that they
don't leak into other files.
Diffstat (limited to 'source/blender/functions/tests/FN_multi_function_test.cc')
-rw-r--r-- | source/blender/functions/tests/FN_multi_function_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/functions/tests/FN_multi_function_test.cc b/source/blender/functions/tests/FN_multi_function_test.cc index 6acb6e22b01..cc023bce597 100644 --- a/source/blender/functions/tests/FN_multi_function_test.cc +++ b/source/blender/functions/tests/FN_multi_function_test.cc @@ -6,6 +6,7 @@ #include "FN_multi_function_builder.hh" namespace blender::fn::tests { +namespace { class AddFunction : public MultiFunction { public: @@ -125,7 +126,7 @@ TEST(multi_function, CreateRangeFunction) { CreateRangeFunction fn; - GVectorArray ranges(CPPType::get<int32_t>(), 5); + GVectorArray ranges(CPPType::get<uint>(), 5); GVectorArrayRef<uint> ranges_ref(ranges); Array<uint> sizes = {3, 0, 6, 1, 4}; @@ -382,4 +383,5 @@ TEST(multi_function, CustomMF_Convert) EXPECT_EQ(outputs[2], 9); } +} // namespace } // namespace blender::fn::tests |