added more tests and helper macros
This commit is contained in:
@@ -16,7 +16,7 @@ struct pickle_jar {
|
||||
|
||||
struct pickle_shelf {
|
||||
struct pickle_jar* pickle_jars;
|
||||
int pickle_jarCount = 0;
|
||||
int pickle_jarCount;
|
||||
bool passed;
|
||||
};
|
||||
|
||||
@@ -66,10 +66,12 @@ int __pickle_shelf_run(pickle_shelf*);
|
||||
/// To create a pickle we need to run
|
||||
/// _PICKLE_ pickle takes a name.
|
||||
///
|
||||
#define INSTALLSHELF struct pickle_shelf __pickle_shelf__ = { 0, 0 };
|
||||
#define INSTALLSHELF struct pickle_shelf __pickle_shelf__ = { 0, 0, true };
|
||||
#define CREATEJAR(jar_name) struct pickle_jar jar_name = {#jar_name, 0, 0, true};
|
||||
#define PICKLE(name) struct pickle name = []() -> pickle
|
||||
#define ADDPICKLE(jar,pickle) __pickle_add_jar(&jar, pickle, #pickle)
|
||||
#define PUTJARONSHLEF(jar) __pickle_jar_add_to_shelf(&__pickle_shelf__,jar);
|
||||
#define PUTJARONSHELF(jar) __pickle_jar_add_to_shelf(&__pickle_shelf__,jar);
|
||||
#define PUTJARONASHELF(shelf,jar) __pickle_jar_add_to_shelf(&shelf,jar);
|
||||
#define PICKLESHELF __pickle_shelf_run(&__pickle_shelf__)
|
||||
#define APICKLESHELF(shelf) __pickle_shelf_run(&shelf)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user