A 2D tile-based sandbox game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

log.t.cc 291B

123456789101112
  1. #include "log.h"
  2. #include <sstream>
  3. #include "lib/test.h"
  4. test("basic logging") {
  5. std::stringstream ostream;
  6. Swan::Logger log(ostream, "test");
  7. log << "Hello World, a number: " << 100 << ", and a string";
  8. expecteq(ostream.str(), "test: Hello World, a number: 100, and a string\n");
  9. }