Sha256: 8cf6a3225ff7fabf751770cbe9ee7d4d347f0f60239bcd26b9b0f0d333bea7cb
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
#include <snowhouse/snowhouse.h> using namespace snowhouse; #include "tests.h" void BooleanOperators() { std::cout << "================================================" << std::endl; std::cout << " Boolean operators" << std::endl; std::cout << "================================================" << std::endl; std::cout << "ShouldHandleIsFalseOperator" << std::endl; { Assert::That(false, IsFalse()); } std::cout << "ShouldHandleWhenIsFalseFails" << std::endl; { AssertTestFails(Assert::That(true, IsFalse()), "Expected: false"); } std::cout << "ShouldHandleIsTrueOperator" << std::endl; { Assert::That(true, IsTrue()); } std::cout << "ShouldHandleWhenIsTrueFails" << std::endl; { AssertTestFails(Assert::That(false, IsTrue()), "Expected: true"); } std::cout << "ShouldHandleFluentIsTrue" << std::endl; { Assert::That(true, Is().True()); AssertTestFails(Assert::That(false, Is().True()), "Expected: true"); } std::cout << "ShouldHandleFluentIsFalse" << std::endl; { Assert::That(false, Is().False()); AssertTestFails(Assert::That(true, Is().False()), "Expected: false"); } std::cout << "ShouldTreatAssertWithoutConstraintAsBooleanConstrains" << std::endl; { Assert::That(true); } }
Version data entries
2 entries across 2 versions & 1 rubygems