Commit 476c959e08548e59547bcb27318ca7f9c2ee4d2a

Authored by Jordi Inglada
1 parent ec8314a7
Exists in master

First working test

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
tests/cbutils-tests.cxx
1 1 #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
2 2 #include "catch.hpp"
  3 +#include "cbutils.h"
  4 +
  5 +using namespace cbutils;
  6 +TEST_CASE("string::split") {
  7 + REQUIRE( string::split("/aaa/bbb/ccc", "/")[1] == "aaa" );
  8 +}
... ...