summaryrefslogtreecommitdiff
path: root/test/number.c
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Fix undefined behaviour in css_fixed printing.Michael Drake2018-07-281-1/+1
| | | | test/number.c:137:22: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
* Strip trailing whitespace.Michael Drake2017-09-041-4/+4
|
* Ensure there are zero global symbols without css_ or css__ in front of them. ↵Daniel Silverstone2011-01-201-3/+3
| | | | | | This helps prevent confusion if someone else wants a function called parse_background or similar svn path=/trunk/libcss/; revision=11416
* Merge parser autogeneration and string handling refactor branch ↵Vincent Sanders2011-01-191-0/+2
| | | | | | r=jmb,kinnison,vince svn path=/trunk/libcss/; revision=11408
* Remove Aliases file nonsenseJohn Mark Bell2010-12-041-4/+4
| | | | svn path=/trunk/libcss/; revision=10983
* Remove use of lwc_initialise and also parserutils.h includes. r=vinceDaniel Silverstone2010-12-041-9/+0
| | | | svn path=/trunk/libcss/; revision=10964
* Fix libcss to use new libwapcaplet behaviour.Daniel Silverstone2010-03-271-5/+3
| | | | | | | TODO: update the tests to include a refcounting proof svn path=/trunk/libcss/; revision=10162
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-141-3/+16
| | | | | | | | | It passes the tests, perhaps we need more of them. Lifetimes of lwc_string objects really need attention before we can consider this finished. svn path=/trunk/libcss/; revision=6517
* Make fpmath stuff public.John Mark Bell2009-02-141-5/+5
| | | | | | Un-inline string->fixed conversion routine. svn path=/trunk/libcss/; revision=6513
* Move css_error_from_string into test utilitiesDaniel Silverstone2009-02-141-0/+2
| | | | svn path=/trunk/libcss/; revision=6480
* 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