diff options
author | Grigoriy Chudnov <g.chudnov@gmail.com> | 2017-01-14 01:21:53 +0300 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@microsoft.com> | 2017-01-13 14:21:53 -0800 |
commit | 7923baae257f7036eea164d30055756e88cea498 (patch) | |
tree | 0132149172a41458e08af8eaa937154bddf2dba9 /Rx/v2/test | |
parent | dd1702ba6e6ff5ed622d44964f11f938ca5e23a4 (diff) | |
download | RxCpp-7923baae257f7036eea164d30055756e88cea498.tar.gz |
decouple tap from observable (#328)
* decouple tap from observable
* decouple tap from observable - fix clang
Diffstat (limited to 'Rx/v2/test')
-rw-r--r-- | Rx/v2/test/operators/tap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Rx/v2/test/operators/tap.cpp b/Rx/v2/test/operators/tap.cpp index ca8b5f1..9aad159 100644 --- a/Rx/v2/test/operators/tap.cpp +++ b/Rx/v2/test/operators/tap.cpp @@ -1,4 +1,5 @@ #include "../test.h" +#include <rxcpp/operators/rx-tap.hpp> SCENARIO("tap stops on completion", "[tap][operators]"){ GIVEN("a test hot observable of ints"){ @@ -24,11 +25,11 @@ SCENARIO("tap stops on completion", "[tap][operators]"){ auto res = w.start( [xs, &invoked]() { return xs - .tap([&invoked](int) { + | rxo::tap([&invoked](int) { invoked++; }) // forget type to workaround lambda deduction bug on msvc 2013 - .as_dynamic(); + | rxo::as_dynamic(); } ); |