summaryrefslogtreecommitdiff
path: root/tests/testserialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testserialize.c')
-rw-r--r--tests/testserialize.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/testserialize.c b/tests/testserialize.c
index 325338f1..78424eff 100644
--- a/tests/testserialize.c
+++ b/tests/testserialize.c
@@ -87,6 +87,7 @@ test_serialize_tab_array (void)
" 0 10 ",
"20 10",
"left:10px right:20px center:30px decimal:40px",
+ "decimal:10240:94",
""
};
const char *roundtripped[] = {
@@ -95,6 +96,7 @@ test_serialize_tab_array (void)
"0 10",
"20 10",
"10px right:20px center:30px decimal:40px",
+ "decimal:10240:94",
""
};
const char *invalid[] = {
@@ -235,15 +237,18 @@ test_serialize_layout_valid (void)
" \"positions\" : [\n"
" {\n"
" \"position\" : 0,\n"
- " \"alignment\" : \"left\"\n"
+ " \"alignment\" : \"left\",\n"
+ " \"decimal-point\" : 0\n"
" },\n"
" {\n"
" \"position\" : 50,\n"
- " \"alignment\" : \"center\"\n"
+ " \"alignment\" : \"center\",\n"
+ " \"decimal-point\" : 0\n"
" },\n"
" {\n"
" \"position\" : 100,\n"
- " \"alignment\" : \"right\"\n"
+ " \"alignment\" : \"decimal\",\n"
+ " \"decimal-point\" : 94\n"
" }\n"
" ]\n"
" },\n"