Skip to content

Commit f9122a0

Browse files
committed
test REFACTOR formatting
1 parent ac4450e commit f9122a0

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

tests/utests/schema/test_schema_common.c

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -997,17 +997,18 @@ test_key_order(void **state)
997997

998998
struct module_clb_list list1[] = {
999999
{"a", "module a {"
1000-
"yang-version 1.1;"
1001-
"namespace urn:test:a;"
1002-
"prefix a;"
1003-
"list l {"
1004-
" key \"k1 k2\";"
1005-
" leaf k2 {type string;}"
1006-
" leaf k1 {type string;}"
1007-
"}"
1008-
"}"},
1000+
"yang-version 1.1;"
1001+
"namespace urn:test:a;"
1002+
"prefix a;"
1003+
"list l {"
1004+
" key \"k1 k2\";"
1005+
" leaf k2 {type string;}"
1006+
" leaf k1 {type string;}"
1007+
"}"
1008+
"}"},
10091009
{NULL, NULL}
10101010
};
1011+
10111012
ly_ctx_set_module_imp_clb(UTEST_LYCTX, module_clb, list1);
10121013
mod = ly_ctx_load_module(UTEST_LYCTX, "a", NULL, NULL);
10131014
assert_non_null(mod);
@@ -1019,23 +1020,24 @@ test_key_order(void **state)
10191020

10201021
struct module_clb_list list2[] = {
10211022
{"b", "module b {"
1022-
"yang-version 1.1;"
1023-
"namespace urn:test:b;"
1024-
"prefix b;"
1025-
"list l {"
1026-
" key \"k1 k2 k3 k4\";"
1027-
" leaf k4 {type string;}"
1028-
" container c {"
1029-
" leaf l1 {type string;}"
1030-
" }"
1031-
" leaf k2 {type string;}"
1032-
" leaf l2 {type string;}"
1033-
" leaf k1 {type string;}"
1034-
" leaf k3 {type string;}"
1035-
"}"
1036-
"}"},
1023+
"yang-version 1.1;"
1024+
"namespace urn:test:b;"
1025+
"prefix b;"
1026+
"list l {"
1027+
" key \"k1 k2 k3 k4\";"
1028+
" leaf k4 {type string;}"
1029+
" container c {"
1030+
" leaf l1 {type string;}"
1031+
" }"
1032+
" leaf k2 {type string;}"
1033+
" leaf l2 {type string;}"
1034+
" leaf k1 {type string;}"
1035+
" leaf k3 {type string;}"
1036+
"}"
1037+
"}"},
10371038
{NULL, NULL}
10381039
};
1040+
10391041
ly_ctx_set_module_imp_clb(UTEST_LYCTX, module_clb, list2);
10401042
mod = ly_ctx_load_module(UTEST_LYCTX, "b", NULL, NULL);
10411043
assert_non_null(mod);

0 commit comments

Comments
 (0)