From 73fd8abb8651a4d1a36f568fc07f36b3b6de6f55 Mon Sep 17 00:00:00 2001 From: Jakub Domagala Date: Wed, 4 Nov 2020 20:41:20 +0100 Subject: [PATCH] #1051: objgroup: Add unittest for Objgroup proxy invoke --- tests/unit/objgroup/test_objgroup.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unit/objgroup/test_objgroup.cc b/tests/unit/objgroup/test_objgroup.cc index 330203ce04..75aeaaaab6 100644 --- a/tests/unit/objgroup/test_objgroup.cc +++ b/tests/unit/objgroup/test_objgroup.cc @@ -271,4 +271,13 @@ TEST_F(TestObjGroup, test_proxy_reduce) { } } +TEST_F(TestObjGroup, test_proxy_invoke) { + auto const& this_node = theContext()->getNode(); + + auto proxy = vt::theObjGroup()->makeCollective(); + proxy[this_node].invoke(); + + EXPECT_EQ(proxy.get()->recv_, 1); +} + }}} // end namespace vt::tests::unit