Swap and with && and or with ||.

Signed-off-by: crynobone <crynobone@gmail.com>
Fixed testcase.

Signed-off-by: crynobone <crynobone@gmail.com>