gitout

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

gitout_tests.c (489B)


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