yang printer CHANGE some tunning of printer to unify output with pyang
diff --git a/tests/utests/extensions/test_yangdata.c b/tests/utests/extensions/test_yangdata.c
index e45cdae..e9486d2 100644
--- a/tests/utests/extensions/test_yangdata.c
+++ b/tests/utests/extensions/test_yangdata.c
@@ -109,7 +109,7 @@
"container b { rc:yang-data template { container x { leaf x {type string;}}}}}";
info = "module b {\n"
" namespace \"urn:tests:extensions:yangdata:b\";\n"
- " prefix self;\n"
+ " prefix self;\n\n"
" container b {\n"
" config true;\n"
" status current;\n"
@@ -144,7 +144,7 @@
" presence \"true\";\n"
" status current;\n"
" }\n"
- " }\n"
+ " }\n\n"
" leaf d {\n"
" type string;\n"
" config true;\n"
diff --git a/tests/utests/node/list.c b/tests/utests/node/list.c
index 7dcd68d..800b05f 100644
--- a/tests/utests/node/list.c
+++ b/tests/utests/node/list.c
@@ -690,6 +690,7 @@
/* test print yin to yang */
schema_yang = MODULE_CREATE_YANG("PRINT1",
+ "\n"
" list user {\n"
" key \"uid name\";\n"
" unique \"name\";\n"
diff --git a/tests/utests/restriction/test_pattern.c b/tests/utests/restriction/test_pattern.c
index ab01ff2..bf527eb 100644
--- a/tests/utests/restriction/test_pattern.c
+++ b/tests/utests/restriction/test_pattern.c
@@ -320,6 +320,7 @@
/* test print yin to yang */
schema_yang = MODULE_CREATE_YANG("PRINT1",
+ "\n"
" leaf port {\n"
" type string {\n"
" pattern \"[A-Z]*\" {\n"
diff --git a/tests/utests/restriction/test_range.c b/tests/utests/restriction/test_range.c
index 782443a..303b855 100644
--- a/tests/utests/restriction/test_range.c
+++ b/tests/utests/restriction/test_range.c
@@ -333,6 +333,7 @@
/* test print yin to yang */
schema_yang = MODULE_CREATE_YANG("PRINT1",
+ "\n"
" leaf port {\n"
" type int32 {\n"
" range \"0 .. 50\" {\n"
diff --git a/tests/utests/types/bits.c b/tests/utests/types/bits.c
index ea2491f..3dbee96 100644
--- a/tests/utests/types/bits.c
+++ b/tests/utests/types/bits.c
@@ -522,7 +522,7 @@
" }\n"
" bit twelve;\n"
" }\n"
- " }\n"
+ " }\n\n"
" leaf port {\n"
" type my_type {\n"
" bit ten {\n"
diff --git a/tests/utests/types/int8.c b/tests/utests/types/int8.c
index 265daf9..e0bd780 100644
--- a/tests/utests/types/int8.c
+++ b/tests/utests/types/int8.c
@@ -1027,7 +1027,7 @@
schema_yang = MODULE_CREATE_YANG("PRINT1",
"\n"
" description\n"
- " \"desc\";\n"
+ " \"desc\";\n\n"
" leaf port {\n"
" type int8 {\n"
" range \"0 .. 50 | 127\";\n"
@@ -1072,6 +1072,7 @@
/* test print yin to yang */
schema_yang = MODULE_CREATE_YANG("PRINT3",
+ "\n"
" leaf port {\n"
" type int8;\n"
" }\n");
diff --git a/tests/utests/types/string.c b/tests/utests/types/string.c
index 678e95e..299aea4 100644
--- a/tests/utests/types/string.c
+++ b/tests/utests/types/string.c
@@ -647,6 +647,7 @@
/* test print yin to yang */
schema_yang = MODULE_CREATE_YANG("PRINT1",
+ "\n"
" leaf port {\n"
" type string {\n"
" length \"min .. 20 | 50\";\n"