embeddedartistry / libc

libc targeted for embedded systems usage. Reduced set of functionality (due to embedded nature). Chosen for portability and quick bringup.
MIT License
520 stars 67 forks source link

Add unit tests for string-to-float functions: math terms #13

Closed phillipjohnston closed 2 years ago

phillipjohnston commented 7 years ago

Test this behavior:

For a string to be recognized as a numeric symbol, it should contain the following pieces in the following order:
An optional string of white-space characters
An optional sign
One of the strings: INF, infinity, NaNQ, NaNS, or NaN (case insensitive)

From: https://sites.ualberta.ca/dept/chemeng/AIX-43/share/man/info/C/a_doc_lib/libs/basetrf1/atof.htm