summaryrefslogtreecommitdiff
path: root/test/data/number/number.dat
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-23 10:29:16 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-23 10:29:16 +0000
commitf235d82dccb499f1af06e7ef3e1d7b9b57c12014 (patch)
tree12db32dbd27a0eb28fa24be089b2d1aa80a3f1b1 /test/data/number/number.dat
parenta3b7632e61981a730a8883a13f36f19be75647f1 (diff)
downloadlibcss-f235d82dccb499f1af06e7ef3e1d7b9b57c12014.tar.gz
libcss-f235d82dccb499f1af06e7ef3e1d7b9b57c12014.tar.bz2
Some kind of testsuite for number parsing.
It appears that negative values are broken, at least. svn path=/trunk/libcss/; revision=5763
Diffstat (limited to 'test/data/number/number.dat')
-rw-r--r--test/data/number/number.dat48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/data/number/number.dat b/test/data/number/number.dat
new file mode 100644
index 0000000..0aeb6d0
--- /dev/null
+++ b/test/data/number/number.dat
@@ -0,0 +1,48 @@
+#data
+1
+#expected
+1
+#reset
+
+#data
+.0
+#expected
+.0
+#reset
+
+#data
+.5
+#expected
+.5
+#reset
+
+#data
+.999
+#expected
+.999
+#reset
+
+#data
+2097151
+#expected
+2097151
+#reset
+
+#data
+2097152
+#expected
+2097151.999
+#reset
+
+#data
+-2097152
+#expected
+-2097152
+#reset
+
+#data
+-2097153
+#expected
+-2097152.999
+#reset
+