X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/b28fd72842fc9ce935bed74f7b2ba79f9cc59711..3f609656ee57bc578da59dc7fb4d27cdaea2ad18:/rt/gc/cdgc/opts.d?ds=inline diff --git a/rt/gc/cdgc/opts.d b/rt/gc/cdgc/opts.d index 728119f..042cc01 100644 --- a/rt/gc/cdgc/opts.d +++ b/rt/gc/cdgc/opts.d @@ -186,6 +186,33 @@ unittest assert (conservative == true); assert (fork == false); } + parse(""); + with (options) { + assert (verbose == 1); + assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0); + assert (sentinel == true); + assert (mem_stomp == true); + assert (conservative == true); + assert (fork == false); + } + parse(":"); + with (options) { + assert (verbose == 1); + assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0); + assert (sentinel == true); + assert (mem_stomp == true); + assert (conservative == true); + assert (fork == false); + } + parse("::::"); + with (options) { + assert (verbose == 1); + assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0); + assert (sentinel == true); + assert (mem_stomp == true); + assert (conservative == true); + assert (fork == false); + } }