Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 387 Bytes

GTest-Lite.md

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);
  };
}