• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "rxcpp/rx.hpp"
2 
3 #include "rxcpp/rx-test.hpp"
4 #include "catch.hpp"
5 
6 
7 SCENARIO("take_last sample"){
8     printf("//! [take_last sample]\n");
9     auto values = rxcpp::observable<>::range(1, 7).take_last(3);
10     values.
11         subscribe(
__anoncbf923290102(int v)12             [](int v){printf("OnNext: %d\n", v);},
__anoncbf923290202()13             [](){printf("OnCompleted\n");});
14     printf("//! [take_last sample]\n");
15 }
16