Commit Graph

2769 Commits

Author SHA1 Message Date
f9c63ece5d json/constraint/base: remove copy constructor 2018-07-18 15:20:15 +10:00
f1e5e560bc iterator: assert that zip arguments are the same size 2018-07-18 15:19:53 +10:00
db24df329f iterator,string: add size queries 2018-07-18 15:19:35 +10:00
6f45f9514d cmdopt: use concrete structs for data holders
Tuples are quite verbose and don't document intention.
2018-07-17 16:02:04 +10:00
395b5ae557 json: rename schema directory to constraint 2018-07-16 13:58:12 +10:00
01ae59c19c build: explicitly set FAIL_REGULAR_EXPRESSION for tests 2018-07-16 11:28:04 +10:00
49d39c4ede json/compare: change to useful exit codes in test suite 2018-07-13 16:08:48 +10:00
33dc5c7053 json/pointer: add a trivial parser for json-pointer 2018-07-13 16:08:24 +10:00
493c91eace view: add nodiscard to constant split operations
Any time we have a constant operator we need to warn the user if they
thing the operation is mutating and does not make use of the result.
2018-07-13 14:05:54 +10:00
a2e2d59c98 json/schema: add multipleOf test cases 2018-07-12 16:21:56 +10:00
0629ba07cd json/schema: add exclusiveMin/Max 2018-07-12 16:08:36 +10:00
d48e36ffd5 json/schema: add additionaProperties tests 2018-07-12 15:56:03 +10:00
8c222300ca json/schema: add pattern_properties and associated tests 2018-07-12 15:10:41 +10:00
85b5853f7f json/schema: delete intermediate test files 2018-07-12 15:10:04 +10:00
647af5504b json/schema: reimplement enum support 2018-07-12 13:06:11 +10:00
bb9d390cf4 json/schema: correct the truth data for min/max tests 2018-07-11 19:30:30 +10:00
c07ce50908 json/schema: modularise the validator objects 2018-07-11 19:30:14 +10:00
8ea762bff8 json/schema: add object test cases 2018-07-09 14:13:51 +10:00
04249a8320 json/schema: fall back to identity test for .result.json
result.json test cases are only really required when we have default
properties that need to be filled. Fall back to using the input.json
file for other cases.
2018-07-09 14:13:51 +10:00
59f42de23f json/schema: use symlinks to identical test result files 2018-07-06 14:21:28 +10:00
8e07e8152b json/schema: rename schema dirs 2018-07-06 13:21:59 +10:00
19fdbaefb7 json/schema: move validation test cases to own directory 2018-07-06 13:19:10 +10:00
195616f563 json/schema: number the test groups for sorting 2018-07-06 12:43:20 +10:00
1658347573 json-schema: add schema test suite 2018-07-05 19:08:58 +10:00
4c0f129a37 json-compare: add a json comparison tool and test suite 2018-07-05 17:46:43 +10:00
3d51be1372 json/tree: correct object and array equality operators 2018-07-05 17:46:02 +10:00
94640d00f0 json: rearrange schema test to allow for modified output
Schemas can insert default values, so we need to be able to test the
resultant files.
2018-07-05 15:02:14 +10:00
30c35b2101 json: move validation test data to dedicated directory 2018-07-05 15:00:47 +10:00
74568d1c2d test/json-parse: add json parsing test 2018-07-05 13:45:10 +10:00
8d921aacc2 io_posix: fake the mapping of zero length files 2018-07-05 13:45:10 +10:00
a4844fa7ed posix/except: add 'what' member for code class 2018-07-05 13:45:10 +10:00
a7ce62cd66 iterator: remove unnecessary make_indices
We have template deduction guides now. This is unneeded.
2018-07-04 14:08:31 +10:00
b3c918888a variadic: rework get to infer references in return types 2018-07-04 14:05:51 +10:00
6ee256992d pool: add index based destroy function 2018-07-04 14:05:51 +10:00
f1c70beee1 pool: add pointer to index query 2018-07-04 14:05:51 +10:00
3370c6764e pool: add accessor for base address 2018-07-04 14:05:51 +10:00
935a3b950f pool: ensure move constructor is noexcept 2018-07-04 14:05:51 +10:00
b79cc887a0 pool: prefer byte over char for raw data 2018-07-04 14:05:51 +10:00
0f5f660fa3 pool: align nodes to pointer boundaries 2018-07-04 14:05:51 +10:00
d466ed75ac iterator: avoid invalid scoping issues with izip 2018-07-04 14:01:46 +10:00
3d59645637 iterator: add deduction guide for 'indices' 2018-07-04 14:01:00 +10:00
7ff2f38fd6 debug: allow variadic CHECK_SANITY for aux sanity variables 2018-06-29 17:34:22 +10:00
23e581ad6a debug: allow specialisation of validator for aux validation variables 2018-06-29 13:32:52 +10:00
4e10aa59b2 strongdef: remove the numeric_limits specialisation
Apparently we don't need this any more, and it's kinda ugly.
2018-06-27 17:59:26 +10:00
0df16bb9ee strongdef: swap template params, move to dedicated namespace 2018-06-27 17:58:45 +10:00
eef3327415 iterator: use index_type for the indices pseudo-container 2018-06-27 17:57:47 +10:00
4094a96160 iterator: add index_type trait 2018-06-27 17:57:22 +10:00
279af4c796 strongdef: significantly tighten restrictions on usage
It turns out that equality in particular was triggering implicit
construction of strongdef types. We make it much harder for these types
to spontaneously emerge.
2018-06-22 17:41:56 +10:00
6c0803b6e9 types/traits: add the identity type function 2018-06-22 17:41:36 +10:00
a95388b02b json-schema: print the validated schema
The validation process may modify the supplied JSON and it's useful for
debugging purposes to visualise any defaulted values.
2018-06-22 14:09:23 +10:00