MCPcopy Create free account
hub / github.com/dds-bridge/dds / equal_future_tricks

Function equal_future_tricks

library/tests/system/concurrency_validation_test.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43static bool equal_future_tricks(const FutureTricks& a, const FutureTricks& b)
44{
45 if (a.cards != b.cards) return false;
46 for (int i = 0; i < a.cards; ++i) {
47 if (a.suit[i] != b.suit[i]) return false;
48 if (a.rank[i] != b.rank[i]) return false;
49 if (a.equals[i] != b.equals[i]) return false;
50 if (a.score[i] != b.score[i]) return false;
51 }
52 return true;
53}
54
55TEST(ConcurrencyValidation, ParallelInstancesMatchSequentialBaseline)
56{

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected