Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Josep M. Bach
committed
Feb 26, 2013
1 parent
11ce217
commit a387678
Showing
16 changed files
with
165 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include "minunit.h" | ||
#include <terror/runtime.h> | ||
#include <terror/input_reader.h> | ||
#include <terror/state.h> | ||
#include <assert.h> | ||
|
||
// Extern global objects declared in runtime.h | ||
VALUE TrueObject; | ||
VALUE FalseObject; | ||
VALUE NilObject; | ||
|
||
#define SETUP() \ | ||
Hashmap *fns = Hashmap_create(NULL, NULL); \ | ||
STATE = State_new(); \ | ||
Hashmap_destroy(state->functions); \ | ||
state->functions = fns; \ | ||
Runtime_init(state); \ | ||
|
||
#define TEARDOWN() \ | ||
Hashmap_traverse(fns, Hashmap_Function_destroy); \ | ||
Hashmap_destroy(fns); \ | ||
State_destroy(state); \ | ||
return NULL; \ | ||
|
||
char *test_empty() | ||
{ | ||
SETUP(); | ||
TEARDOWN(); | ||
} | ||
|
||
|
||
char *all_tests() { | ||
mu_suite_start(); | ||
|
||
mu_run_test(test_empty); | ||
|
||
return NULL; | ||
} | ||
|
||
RUN_TESTS(all_tests); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "minunit.h" | ||
|
||
char *test_void() | ||
{ | ||
return NULL; | ||
} | ||
|
||
char *all_tests() { | ||
mu_suite_start(); | ||
|
||
mu_run_test(test_void); | ||
|
||
return NULL; | ||
} | ||
|
||
RUN_TESTS(all_tests); | ||
|