#include "clib-package.h"
#include "describe/describe.h"

int main() {
  describe("clib_package_load_from_manifest") {
    it("should load a package from a file if available") {
      int verbose = 0;
      clib_package_t *pkg =
          clib_package_load_from_manifest("./clib.json", verbose);
      assert(NULL != pkg);
      if (pkg) {
        clib_package_free(pkg);
      }
    }
  }

  return assert_failures();
}
