GUnit/docs/GTest-Lite.md at master · cpp-testing/GUnit

Skip to content

Navigation Menu

Sign in

Appearance settings

Latest commit

File metadata and controls

23 lines (19 loc) · 387 Bytes

GUnit.GTest-Lite

  • Synopsis
    template <class T, T...>
    constexpr auto operator""_test;
    
    template <class T, T...>
    constexpr auto operator""_test_disabled;

GUnit.GTest-Lite - Tutorial by example

int main() {
  "should always be true"_test = [] {
    EXPECT_TRUE(true);
  };

  "should not be run"_test_disabled = [] {
    EXPECT_TRUE(false);
  };
}