search for: test_escap

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

Did you mean: test_escape
2015 May 11
3
[PATCH 1/2] mllib: Require OUnit2 for tests.
...est_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 doc) -let test_escape () = +let test_escape ctx = let doc = [ "test_string", JSON.String "test \" ' \n \b \r \t"; ] in assert_equal_string "{ \"test_string\": \"test \\\" ' \\n \\b \\r \\t\" }" (JSON.string_of_doc doc); @@ -136,7 +136,7 @@ l...
2015 Jan 23
0
[PATCH 2/2] mllib: add simple tests for the JSON module
...t\": 10 }" + (JSON.string_of_doc doc); + assert_equal_string + "{ + \"item\": { + \"int\": 5, + \"item2\": { + \"int\": 0 + } + }, + \"last\": 10 +}" + (JSON.string_of_doc ~fmt:JSON.Indented doc) + +let test_escape () = + let doc = [ "test_string", JSON.String "test \" ' \n \b \r \t"; ] in + assert_equal_string "{ \"test_string\": \"test \\\" ' \\n \\b \\r \\t\" }" + (JSON.string_of_doc doc); + assert_equal_string "{ + \"tes...
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
2019 Mar 29
5
[PATCH v2 0/3] v2v: add -o json output mode
This series adds a new output mode for virt-v2v, called -o json. It produces local files, just like -o local, although the metadata produced is a JSON file with data that v2v collected in the conversion process. This can be useful for converting to unsupported destinations, still based on QEMU/KVM. In addition to a simple different metadata, it offers a way to relocate the disks, with