xref: /trunk/test/odf-validate/fixtures/boolean-writer/checks.json (revision 0e16a31d78a652c56c5c0fc79c752f48b9048df9)
1[
2 {
3  "name": "cells",
4  "expr": "[(c.Value, c.String, doc.NumberFormats.getByKey(c.NumberFormat).Type) for c in [doc.TextTables.getByIndex(0).getCellByPosition(i,0) for i in range(3)]]",
5  "expect": [
6   [
7    12345.0,
8    "TRUE",
9    1024
10   ],
11   [
12    1.0,
13    "TRUE",
14    1024
15   ],
16   [
17    0.0,
18    "FALSE",
19    1024
20   ]
21  ]
22 },
23 {
24  "name": "fields",
25  "expr": "[(f.Value, doc.NumberFormats.getByKey(f.NumberFormat).Type) for f in [e.nextElement() for e in [doc.TextFields.createEnumeration()] for _ in range(1)]]",
26  "expect": [
27   [
28    12345.0,
29    1024
30   ]
31  ]
32 }
33]