summaryrefslogtreecommitdiff
path: root/test/number.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix handling of max -ve numbersAdrian Lees2009-01-241-1/+1
| | | | svn path=/trunk/libcss/; revision=6214
* Ensure that we round the fractional part to nearest when converting back to ↵John Mark Bell2009-01-231-1/+2
| | | | | | decimal. svn path=/trunk/libcss/; revision=6205
* Use our own printing routine, rather than relying on snprintf to do the ↵John Mark Bell2009-01-171-1/+68
| | | | | | | | right thing wrt rounding. Update test data in line with this. That said, it would appear that values <=-(2^21) get truncated to -2097151.999. This probably wants investigating. svn path=/trunk/libcss/; revision=6111
* Fix testcase.John Mark Bell2009-01-121-1/+1
| | | | svn path=/trunk/libcss/; revision=6043
* css_string is now the same as a parserutils_dict_entry. This allows us to ↵John Mark Bell2008-11-271-1/+1
| | | | | | | | | | use dict entries directly as strings. iChange the way in which selectors are represented. This significantly reduces memory requirements -- reducing the approximate usage count (excludes the string dictionary, which is about 360k) of allzengarden.css from 4,535,400 bytes to 2,414,312 bytes on a 64bit platform. The string dictionary is now created and owned by the stylesheet object. The parser is just given access to this so that it can store strings in it. svn path=/trunk/libcss/; revision=5809
* Fix number parsing and make test code automatically determine correctness.John Mark Bell2008-11-241-4/+8
| | | | | | | More test data, which covers everything. Fix includes in libcss/types.h svn path=/trunk/libcss/; revision=5764
* Some kind of testsuite for number parsing.John Mark Bell2008-11-231-0/+122
It appears that negative values are broken, at least. svn path=/trunk/libcss/; revision=5763