1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-28 19:29:53 +00:00
cc65/testcode/lib
Oliver Schmidt d242afdf7e Added sprintf() test contributed by Ullrich von Bassewitz.
Comment from the author:

Some may remember that there was a problem with printf reported a long time
ago. I got curious and over the weekend, I wrote a program to test printf. Or
better: The underlying formatting code, which is used for the whole printf()
family of functions including cprintf and sprintf.

The result is what made me say "oops": The program tests 377 different
conversions. The cc65 printf implementation fails in 144 cases. In 31 of these
cases, it fails so badly that it outputs screens of garbage, or even crashes
the machine, so I had to disable these tests to proceed.

Please note that you can compile the code with gcc for x86, but it will show
failures. This is because the expected results are hardcoded and the integer
sizes of gcc are different, so the conversion results won't match the ones
expected in the code.
2013-07-27 17:21:07 +02:00
..
atari Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
arg-test.c New test program arg-test.c 2004-05-02 00:53:39 +00:00
atoi-test.c Testcode for strtol and atoi. 2009-09-15 20:47:03 +00:00
clock.c Introduced target 'atarixl'. 2013-05-28 21:56:37 +02:00
cprintf.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
cursor.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
deb.c added deb.c (simple program to enter the debugger) 2000-06-25 02:20:13 +00:00
dir-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
div-test.c Introduced target 'atarixl'. 2013-05-28 21:56:37 +02:00
em-test.c Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. 2013-06-17 21:34:08 +02:00
fileio-test.c New module fileio-test.c 2002-11-17 23:00:14 +00:00
ft.c Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. 2013-06-17 21:34:08 +02:00
getopt-test.c Added getopt. The implementation is based on a public domain source, 2010-07-10 11:28:02 +00:00
getsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
heaptest.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
joy-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
moddiv-test.c Added a test program for division and modulo operation. 2011-01-11 17:19:16 +00:00
mul-test.c Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. 2013-06-17 21:34:08 +02:00
posixio-test.c include unistd.h -- fix by Daniel Serpell 2009-11-25 17:59:55 +00:00
rename-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
scanf-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
seek.c lseek is now in unistd.h 2005-05-04 10:09:52 +00:00
ser-test.c Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. 2013-06-17 21:34:08 +02:00
shift-test.c Added a test program to test the 16 bit shift ops. 2012-07-12 21:11:21 +00:00
signal-test.c Added signal-test.c 2003-03-16 14:27:24 +00:00
sprintf-test.c Added sprintf() test contributed by Ullrich von Bassewitz. 2013-07-27 17:21:07 +02:00
strchr-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
strdup-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
strncmp-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
strnicmp-test.c Introduced target 'atarixl'. 2013-05-28 21:56:37 +02:00
stroserror-test.c Added stroserror-test.c 2002-07-18 13:38:40 +00:00
strtol-test.c Fixed a comment 2009-09-24 17:09:50 +00:00
strtoul-test.c Added a test for strtoul(). 2009-09-24 17:09:33 +00:00
time-test.c Extended the test 2002-11-13 13:36:28 +00:00
tinyshell.c add "tinyshell" test program for file operations 2013-07-24 15:05:25 +02:00
uname-test.c New file uname-test.c 2003-08-12 17:32:16 +00:00