cc_project_template_bazel

A Bazel, ninja, and googletest-based C++ project template
git clone https://git.bracken.jp/cc_project_template_bazel.git
Log | Files | Refs | README | LICENSE

bar_test.cc (248B)


      1 #include "bar.h"
      2 
      3 #include "gtest/gtest.h"
      4 
      5 namespace foobar {
      6 namespace {
      7 
      8 TEST(Bar, HandlesEmptyString) { EXPECT_EQ("Hello", Bar("")); }
      9 
     10 TEST(Bar, HandlesName) { EXPECT_EQ("Hello, Alice", Bar("Alice")); }
     11 
     12 }  // namespace
     13 }  // namespace foobar