progress
This commit is contained in:
parent
35de7aa57d
commit
bd781f335c
6
main.cpp
6
main.cpp
@ -5,6 +5,12 @@
|
||||
|
||||
void test_basics(amap mapdo, void *map) {
|
||||
assert(NULL == mapdo(map, AMAP_GET, "asdf", NULL));
|
||||
int i = 42;
|
||||
int *iptr;
|
||||
assert(NULL != mapdo(map, AMAP_SET, "meanging", &i));
|
||||
assert(NULL != (iptr = (int *)mapdo(map, AMAP_GET, "asdf", NULL)));
|
||||
assert(*iptr == 42);
|
||||
assert(iptr == &i);
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user