diff options
author | Kirk Shoop <kirk.shoop@microsoft.com> | 2015-07-23 19:57:31 -0700 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@microsoft.com> | 2015-07-23 21:31:38 -0700 |
commit | 53450287a42ce4f63af07032c4eed01e85db0206 (patch) | |
tree | c4f37ae14ef2433b01bbc21f6106f71e7393c001 /Rx/v2/test/operators | |
parent | dc5c5c11919ec830228da93ff971d935e1728ce6 (diff) | |
download | RxCpp-53450287a42ce4f63af07032c4eed01e85db0206.tar.gz |
small ci changes
Diffstat (limited to 'Rx/v2/test/operators')
31 files changed, 33 insertions, 229 deletions
diff --git a/Rx/v2/test/operators/amb.cpp b/Rx/v2/test/operators/amb.cpp index 79e1f7f..60bbf83 100644 --- a/Rx/v2/test/operators/amb.cpp +++ b/Rx/v2/test/operators/amb.cpp @@ -1,12 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; -namespace rxn=rx::notifications; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("amb never 3", "[amb][join][operators]"){ GIVEN("1 cold observable with 3 hot observables of ints."){ diff --git a/Rx/v2/test/operators/amb_variadic.cpp b/Rx/v2/test/operators/amb_variadic.cpp index 038cc5a..14f898b 100644 --- a/Rx/v2/test/operators/amb_variadic.cpp +++ b/Rx/v2/test/operators/amb_variadic.cpp @@ -1,12 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; -namespace rxn=rx::notifications; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("variadic amb never 3", "[amb][join][operators]"){ GIVEN("3 hot observables of ints."){ diff --git a/Rx/v2/test/operators/buffer.cpp b/Rx/v2/test/operators/buffer.cpp index 118709e..bd3b302 100644 --- a/Rx/v2/test/operators/buffer.cpp +++ b/Rx/v2/test/operators/buffer.cpp @@ -1,11 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("buffer count partial window", "[buffer][operators]"){ GIVEN("1 hot observable of ints."){ diff --git a/Rx/v2/test/operators/combine_latest.cpp b/Rx/v2/test/operators/combine_latest.cpp index 51e6819..365683d 100644 --- a/Rx/v2/test/operators/combine_latest.cpp +++ b/Rx/v2/test/operators/combine_latest.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("combine_latest interleaved with tail", "[combine_latest][join][operators]"){ GIVEN("2 hot observables of ints."){ diff --git a/Rx/v2/test/operators/concat.cpp b/Rx/v2/test/operators/concat.cpp index f37ec24..459eb68 100644 --- a/Rx/v2/test/operators/concat.cpp +++ b/Rx/v2/test/operators/concat.cpp @@ -1,11 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" const int static_onnextcalls = 1000000; diff --git a/Rx/v2/test/operators/concat_map.cpp b/Rx/v2/test/operators/concat_map.cpp index b82749a..a571257 100644 --- a/Rx/v2/test/operators/concat_map.cpp +++ b/Rx/v2/test/operators/concat_map.cpp @@ -1,12 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxo=rxcpp::operators; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" static const int static_tripletCount = 100; diff --git a/Rx/v2/test/operators/distinct_until_changed.cpp b/Rx/v2/test/operators/distinct_until_changed.cpp index cf8d5cf..9059bda 100644 --- a/Rx/v2/test/operators/distinct_until_changed.cpp +++ b/Rx/v2/test/operators/distinct_until_changed.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu = rxcpp::util; -namespace rxsc = rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("distinct_until_changed - never", "[distinct_until_changed][operators]"){ GIVEN("a source"){ diff --git a/Rx/v2/test/operators/filter.cpp b/Rx/v2/test/operators/filter.cpp index accb527..54dd71c 100644 --- a/Rx/v2/test/operators/filter.cpp +++ b/Rx/v2/test/operators/filter.cpp @@ -1,13 +1,5 @@ -#define RXCPP_USE_OBSERVABLE_MEMBERS 1 +#include "../test.h" -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxo=rxcpp::operators; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" namespace { bool IsPrime(int x) diff --git a/Rx/v2/test/operators/flat_map.cpp b/Rx/v2/test/operators/flat_map.cpp index 5a68023..23874f5 100644 --- a/Rx/v2/test/operators/flat_map.cpp +++ b/Rx/v2/test/operators/flat_map.cpp @@ -1,12 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxo=rxcpp::operators; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" static const int static_tripletCount = 100; diff --git a/Rx/v2/test/operators/group_by.cpp b/Rx/v2/test/operators/group_by.cpp index 6677f9e..d3e09ed 100644 --- a/Rx/v2/test/operators/group_by.cpp +++ b/Rx/v2/test/operators/group_by.cpp @@ -1,10 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" #include <locale> diff --git a/Rx/v2/test/operators/lift.cpp b/Rx/v2/test/operators/lift.cpp index 0794178..7d90bce 100644 --- a/Rx/v2/test/operators/lift.cpp +++ b/Rx/v2/test/operators/lift.cpp @@ -1,13 +1,4 @@ -#define RXCPP_USE_OBSERVABLE_MEMBERS 1 - -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxo=rxcpp::operators; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" namespace detail { diff --git a/Rx/v2/test/operators/map.cpp b/Rx/v2/test/operators/map.cpp index aab227f..d672d7e 100644 --- a/Rx/v2/test/operators/map.cpp +++ b/Rx/v2/test/operators/map.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("map stops on completion", "[map][operators]"){ GIVEN("a test hot observable of ints"){ diff --git a/Rx/v2/test/operators/merge.cpp b/Rx/v2/test/operators/merge.cpp index 2b32838..389e823 100644 --- a/Rx/v2/test/operators/merge.cpp +++ b/Rx/v2/test/operators/merge.cpp @@ -1,11 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" const int static_onnextcalls = 1000000; diff --git a/Rx/v2/test/operators/observe_on.cpp b/Rx/v2/test/operators/observe_on.cpp index ce409bf..b3190c1 100644 --- a/Rx/v2/test/operators/observe_on.cpp +++ b/Rx/v2/test/operators/observe_on.cpp @@ -1,12 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; -namespace rxsub=rxcpp::subjects; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" const int static_onnextcalls = 100000; diff --git a/Rx/v2/test/operators/on_error_resume_next.cpp b/Rx/v2/test/operators/on_error_resume_next.cpp index aec1774..c6c8fc8 100644 --- a/Rx/v2/test/operators/on_error_resume_next.cpp +++ b/Rx/v2/test/operators/on_error_resume_next.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("on_error_resume_next stops on completion", "[on_error_resume_next][operators]"){ GIVEN("a test hot observable of ints"){ @@ -149,4 +144,4 @@ SCENARIO("on_error_resume_next stops on error", "[on_error_resume_next][operator } } } -}
\ No newline at end of file +} diff --git a/Rx/v2/test/operators/pairwise.cpp b/Rx/v2/test/operators/pairwise.cpp index cb0a888..20da0d8 100644 --- a/Rx/v2/test/operators/pairwise.cpp +++ b/Rx/v2/test/operators/pairwise.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("pairwise", "[pairwise][operators]") { GIVEN("a cold observable of n ints") { diff --git a/Rx/v2/test/operators/publish.cpp b/Rx/v2/test/operators/publish.cpp index 0a22309..62d81ff 100644 --- a/Rx/v2/test/operators/publish.cpp +++ b/Rx/v2/test/operators/publish.cpp @@ -1,12 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" - +#include "../test.h" SCENARIO("publish range", "[hide][range][subject][publish][subject][operators]"){ GIVEN("a range"){ diff --git a/Rx/v2/test/operators/reduce.cpp b/Rx/v2/test/operators/reduce.cpp index 8a552e3..e0f8e5e 100644 --- a/Rx/v2/test/operators/reduce.cpp +++ b/Rx/v2/test/operators/reduce.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("reduce some data with seed", "[reduce][operators]"){ GIVEN("a test hot observable of ints"){ diff --git a/Rx/v2/test/operators/repeat.cpp b/Rx/v2/test/operators/repeat.cpp index cf91a37..d34f1b3 100644 --- a/Rx/v2/test/operators/repeat.cpp +++ b/Rx/v2/test/operators/repeat.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("repeat, basic test", "[repeat][operators]"){ GIVEN("cold observable of 3 ints."){ diff --git a/Rx/v2/test/operators/replay.cpp b/Rx/v2/test/operators/replay.cpp index 13d32b5..a694854 100644 --- a/Rx/v2/test/operators/replay.cpp +++ b/Rx/v2/test/operators/replay.cpp @@ -1,11 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxs=rxcpp::sources; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("replay basic", "[replay][multicast][subject][operators]"){ GIVEN("a test hot observable of ints"){ diff --git a/Rx/v2/test/operators/retry.cpp b/Rx/v2/test/operators/retry.cpp index f2d4df4..12a7fc3 100644 --- a/Rx/v2/test/operators/retry.cpp +++ b/Rx/v2/test/operators/retry.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu = rxcpp::util; -namespace rxsc = rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("retry, basic test", "[retry][operators]") { GIVEN("hot observable of 3x4x7 ints with errors inbetween the groups. Infinite retry.") { diff --git a/Rx/v2/test/operators/scan.cpp b/Rx/v2/test/operators/scan.cpp index 0645c87..b7a7276 100644 --- a/Rx/v2/test/operators/scan.cpp +++ b/Rx/v2/test/operators/scan.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("scan: issue 41", "[scan][operators][issue][hide]"){ GIVEN("map of scan of interval"){ diff --git a/Rx/v2/test/operators/skip.cpp b/Rx/v2/test/operators/skip.cpp index 2596e74..32ac5de 100644 --- a/Rx/v2/test/operators/skip.cpp +++ b/Rx/v2/test/operators/skip.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("skip, complete after", "[skip][operators]"){ GIVEN("a source"){ diff --git a/Rx/v2/test/operators/skip_until.cpp b/Rx/v2/test/operators/skip_until.cpp index 2b44673..697361b 100644 --- a/Rx/v2/test/operators/skip_until.cpp +++ b/Rx/v2/test/operators/skip_until.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("skip_until, some data next", "[skip_until][skip][operators]"){ GIVEN("2 sources"){ diff --git a/Rx/v2/test/operators/subscribe_on.cpp b/Rx/v2/test/operators/subscribe_on.cpp index c8a25f7..a5428aa 100644 --- a/Rx/v2/test/operators/subscribe_on.cpp +++ b/Rx/v2/test/operators/subscribe_on.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxs=rx::rxs; -namespace rxsc=rx::rxsc; - -#include "catch.hpp" +#include "../test.h" static const int static_subscriptions = 50000; diff --git a/Rx/v2/test/operators/switch_on_next.cpp b/Rx/v2/test/operators/switch_on_next.cpp index 32c4bac..d4c0f60 100644 --- a/Rx/v2/test/operators/switch_on_next.cpp +++ b/Rx/v2/test/operators/switch_on_next.cpp @@ -1,11 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; -namespace rxn=rx::notifications; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("switch_on_next - some changes", "[switch_on_next][operators]"){ GIVEN("a source"){ diff --git a/Rx/v2/test/operators/take.cpp b/Rx/v2/test/operators/take.cpp index 846734b..4d5e9e1 100644 --- a/Rx/v2/test/operators/take.cpp +++ b/Rx/v2/test/operators/take.cpp @@ -1,10 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx=rxcpp; -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("take 2", "[take][operators]"){ GIVEN("a source"){ diff --git a/Rx/v2/test/operators/take_until.cpp b/Rx/v2/test/operators/take_until.cpp index 8afb0f6..e821f81 100644 --- a/Rx/v2/test/operators/take_until.cpp +++ b/Rx/v2/test/operators/take_until.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("take_until trigger on_next", "[take_until][take][operators]"){ GIVEN("2 sources"){ diff --git a/Rx/v2/test/operators/tap.cpp b/Rx/v2/test/operators/tap.cpp index 94f09df..ca8b5f1 100644 --- a/Rx/v2/test/operators/tap.cpp +++ b/Rx/v2/test/operators/tap.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("tap stops on completion", "[tap][operators]"){ GIVEN("a test hot observable of ints"){ @@ -122,4 +117,4 @@ SCENARIO("tap stops on error", "[tap][operators]"){ } } } -}
\ No newline at end of file +} diff --git a/Rx/v2/test/operators/window.cpp b/Rx/v2/test/operators/window.cpp index 35dc77d..b2049cc 100644 --- a/Rx/v2/test/operators/window.cpp +++ b/Rx/v2/test/operators/window.cpp @@ -1,13 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rx = rxcpp; -namespace rxu = rxcpp::util; -namespace rxs = rxcpp::sources; -namespace rxsc = rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -namespace rxt = rxcpp::test; - -#include "catch.hpp" +#include "../test.h" SCENARIO("window count, basic", "[window][operators]"){ GIVEN("1 hot observable of ints."){ diff --git a/Rx/v2/test/operators/zip.cpp b/Rx/v2/test/operators/zip.cpp index 047edb2..3beebb4 100644 --- a/Rx/v2/test/operators/zip.cpp +++ b/Rx/v2/test/operators/zip.cpp @@ -1,9 +1,4 @@ -#include "rxcpp/rx.hpp" -namespace rxu=rxcpp::util; -namespace rxsc=rxcpp::schedulers; - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" +#include "../test.h" SCENARIO("zip never/never", "[zip][join][operators]"){ GIVEN("2 hot observables of ints."){ |