void EXPECT_IS_RIGHT(const either<Left,Right> &val) { EXPECT_FALSE(val.is_left()); EXPECT_TRUE(val.is_right()); }
bool operator==(either<Left, Right> const& lhs, Right const& rhs) { return lhs.is_right() && lhs.right() == rhs; }