gout

A static git page generator
git clone https://git.bracken.jp/gout.git
Log | Files | Refs | README | LICENSE

gout_tests.c (467B)


      1 #include "gout.h"
      2 
      3 #include "utest.h"
      4 
      5 UTEST(gout_options_create, ReturnsNullIfNoRepoSpecified) {
      6   int argc = 1;
      7   const char* argv[1] = {"path/to/gout"};
      8   GoutOptions* options = gout_options_create(argc, argv);
      9   EXPECT_EQ(NULL, options);
     10 }
     11 
     12 UTEST(gout_options_create, ReturnsInitializedOptions) {
     13   int argc = 2;
     14   const char* argv[2] = {"path/to/gout", "some/path/myrepo"};
     15   GoutOptions* options = gout_options_create(argc, argv);
     16   ASSERT_NE(NULL, options);
     17 }