From 669a438205ad4eba5b7c100b10312ff30bb5118e Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 4 Apr 2018 12:51:48 +0100 Subject: Add pile tests --- src/main/game/pile.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/game/pile.cpp') diff --git a/src/main/game/pile.cpp b/src/main/game/pile.cpp index 382fa50..3136681 100644 --- a/src/main/game/pile.cpp +++ b/src/main/game/pile.cpp @@ -53,6 +53,10 @@ bool operator==(const pile& a, const pile& b) { return a.pile_vec == b.pile_vec; } +bool operator!=(const pile& a, const pile& b) { + return a.pile_vec != b.pile_vec; +} + bool operator<(const pile& a, const pile& b) { if (a.size() == b.size()) { return a.pile_vec < b.pile_vec; -- cgit v1.2.1