Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example test under Rx/v2/examples/tests fails #585

Open
Ricardicus opened this issue May 9, 2022 · 0 comments
Open

Example test under Rx/v2/examples/tests fails #585

Ricardicus opened this issue May 9, 2022 · 0 comments

Comments

@Ricardicus
Copy link

Ricardicus commented May 9, 2022

My build is v4.1.1 (9075876) on Ubuntu.

If I build and run the example tests found under:
RxCpp/Rx/v2/examples/tests

I get:

$ build git:(9075876) ✗ ./build/examples/tests/tests

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests is a Catch v2.7.0 host application.
Run with -? for options

-------------------------------------------------------------------------------
Scenario: take 2 - fails
      Given: a source
       When: 2 values are taken
       Then: the output only contains items sent while subscribed
-------------------------------------------------------------------------------
/home/ubuntu/dev/RxCpp/Rx/v2/examples/tests/take.cpp:85
...............................................................................

/home/ubuntu/dev/RxCpp/Rx/v2/examples/tests/take.cpp:92: FAILED:
  REQUIRE( required == actual )
with expansion:
  [@210-on_next( 2), @220-on_next( 3), @220-on_completed()]
  ==
  [@230-on_next( 4), @240-on_next( 5), @250-on_completed()]

-------------------------------------------------------------------------------
Scenario: take 2 - fails
      Given: a source
       When: 2 values are taken
       Then: there was 1 subscription/unsubscription to the source
-------------------------------------------------------------------------------
/home/ubuntu/dev/RxCpp/Rx/v2/examples/tests/take.cpp:95
...............................................................................

/home/ubuntu/dev/RxCpp/Rx/v2/examples/tests/take.cpp:100: FAILED:
  REQUIRE( required == actual )
with expansion:
  { 200-220 } == { 200-250 }

===============================================================================
test cases: 2 | 1 passed | 1 failed
assertions: 4 | 2 passed | 2 failed

Is it something wrong with the test or with RxCpp (I expect it is the test)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant