search for: test_nested_nested_dict

Displaying 4 results from an estimated 4 matches for "test_nested_nested_dict".

2015 May 11
3
[PATCH 1/2] mllib: Require OUnit2 for tests.
...nested_dict ctx = let doc = [ "item", JSON.Dict [ "int", JSON.Int 5; "string", JSON.String "foo"; ]; "last", JSON.Int 10; @@ -104,7 +104,7 @@ let test_nested_dict () = }" (JSON.string_of_doc ~fmt:JSON.Indented doc) -let test_nested_nested_dict () = +let test_nested_nested_dict ctx = let doc = [ "item", JSON.Dict [ "int", JSON.Int 5; "item2", JSON.Dict [ "int", JSON.Int 0; ]; @@ -126,7 +126,7 @@ let test_nested_nested_dict () = }" (JSON.string_of_doc ~fmt:JSON.Indented...
2015 Jan 23
0
[PATCH 2/2] mllib: add simple tests for the JSON module
...uot; }, \"last\": 10 }" + (JSON.string_of_doc doc); + assert_equal_string + "{ + \"item\": { + \"int\": 5, + \"string\": \"foo\" + }, + \"last\": 10 +}" + (JSON.string_of_doc ~fmt:JSON.Indented doc) + +let test_nested_nested_dict () = + let doc = [ + "item", JSON.Dict [ "int", JSON.Int 5; + "item2", JSON.Dict [ "int", JSON.Int 0; ]; + ]; + "last", JSON.Int 10; + ] in + assert_equal_string + "{ \"item\": { \"int\": 5, \&q...
2015 Jan 23
2
[PATCH 1/2] mllib: tests: add tests for string_lines_split
--- mllib/common_utils_tests.ml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mllib/common_utils_tests.ml b/mllib/common_utils_tests.ml index 09d5c51..283e9a1 100644 --- a/mllib/common_utils_tests.ml +++ b/mllib/common_utils_tests.ml @@ -27,6 +27,7 @@ let prog = "common_utils_tests" let assert_equal_string = assert_equal ~printer:(fun x -> x) let
2018 Aug 20
6
[PATCH 0/4] mltools: JSON unification
An evolution of: https://www.redhat.com/archives/libguestfs/2018-August/msg00155.html