Stage one clean up of test files. Some unit tests are still creating temporary files in
the project root directory, which is still to be fixed; and *I think* known-failing tests which I don't intend to fix immediately should be marked in some way.
This commit is contained in:
parent
5e6363e6ae
commit
222368bf64
28 changed files with 172 additions and 144 deletions
|
|
@ -412,10 +412,16 @@ struct cons_pointer multiply_integers( struct cons_pointer a,
|
|||
struct cons_pointer integer_to_string_add_digit( int digit, int digits,
|
||||
struct cons_pointer tail ) {
|
||||
wint_t character = btowc( hex_digits[digit] );
|
||||
return ( digits % 3 == 0 ) ?
|
||||
debug_printf( DEBUG_IO, L"integer_to_string_add_digit: digit is %d, digits is %d; returning: ", digit, digits);
|
||||
struct cons_pointer r = ( digits % 3 == 0 ) ?
|
||||
make_string( L',', make_string( character,
|
||||
tail ) ) :
|
||||
make_string( character, tail );
|
||||
|
||||
debug_print_object( r, DEBUG_IO);
|
||||
debug_println( DEBUG_IO);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -170,13 +170,9 @@ struct cons_pointer print( URL_FILE * output, struct cons_pointer pointer ) {
|
|||
url_fputwc( L'>', output );
|
||||
break;
|
||||
case INTEGERTV:
|
||||
if ( nilp( cell.payload.integer.more)) {
|
||||
url_fwprintf( output, L"%ld", cell.payload.integer.value);
|
||||
} else {
|
||||
struct cons_pointer s = integer_to_string( pointer, 10 );
|
||||
print_string_contents( output, s );
|
||||
dec_ref( s );
|
||||
}
|
||||
struct cons_pointer s = integer_to_string( pointer, 10 );
|
||||
print_string_contents( output, s );
|
||||
dec_ref( s );
|
||||
break;
|
||||
case KEYTV:
|
||||
url_fputws( L":", output );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue