|
@@ -122,7 +122,11 @@ TEST(ports, trade_types) {
|
|
expected[pair{4, 5}] = 1;
|
|
expected[pair{4, 5}] = 1;
|
|
|
|
|
|
// I'm checking 0's and 1's.
|
|
// I'm checking 0's and 1's.
|
|
-
|
|
|
|
|
|
+ expected[pair{1,3}] = 2;
|
|
|
|
+ expected[pair{2,3}] = 2;
|
|
|
|
+ expected[pair{4,6}] = 2;
|
|
|
|
+ expected[pair{5,6}] = 2;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
GTEST_COUT << "size:" << expected.size() << std::endl;
|
|
GTEST_COUT << "size:" << expected.size() << std::endl;
|
|
|
|
|
|
@@ -136,7 +140,7 @@ TEST(ports, trade_types) {
|
|
|
|
|
|
for (int p1 = 1; p1 <= 8; ++p1) {
|
|
for (int p1 = 1; p1 <= 8; ++p1) {
|
|
for (int p2 = p1; p2 <= 8; ++p2) {
|
|
for (int p2 = p1; p2 <= 8; ++p2) {
|
|
- GTEST_COUT << "Type " << p1 << " and " << p2 << std::endl;
|
|
|
|
|
|
+ // GTEST_COUT << "Type " << p1 << " and " << p2 << std::endl;
|
|
int t = trade_type(p1, p2);
|
|
int t = trade_type(p1, p2);
|
|
int t2 = trade_type(p2, p1);
|
|
int t2 = trade_type(p2, p1);
|
|
EXPECT_EQ(t, t2) << "Comparing reversed types";
|
|
EXPECT_EQ(t, t2) << "Comparing reversed types";
|