Config-UCL
view release on metacpan or search on metacpan
libucl-0.8.1/tests/schema/refRemote.json view on Meta::CPAN
"valid": true
},
{
"description": "remote ref invalid",
"data": "a",
"valid": false
}
]
},
{
"description": "fragment within remote ref",
"schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"},
"tests": [
{
"description": "remote fragment valid",
"data": 1,
"valid": true
},
{
"description": "remote fragment invalid",
"data": "a",
"valid": false
}
]
},
{
"description": "ref within remote ref",
"schema": {
"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger"
},
libucl-0.8.1/tests/test_generate.c view on Meta::CPAN
ar1 = ucl_object_copy (ar);
cur = ucl_object_fromstring ("abc");
ucl_array_prepend (ar1, cur);
cur = ucl_object_fromstring ("cde");
ucl_array_prepend (ar1, cur);
cur = ucl_object_fromstring ("абв"); /* UTF8 */
ucl_array_prepend (ar1, cur);
cur = ucl_object_fromstring ("Ðбв"); /* UTF8 */
ucl_array_prepend (ar1, cur);
/*
* This is usually broken or fragile as utf collate is far from perfect
cur = ucl_object_fromstring ("Ñбв");
ucl_array_prepend (ar1, cur);
cur = ucl_object_fromstring ("Ðбв"); // hello to @bapt
ucl_array_prepend (ar1, cur);
*/
cur = ucl_object_fromstring ("ð"); /* everybody likes emoji in the code */
ucl_array_prepend (ar1, cur);
ucl_object_array_sort (ar1, ucl_object_compare_qsort);
( run in 0.835 second using v1.01-cache-2.11-cpan-364913b4093 )