bool TestExtFile::test_parse_hdf_string() { Array hdf; hdf.set("bool", false); hdf.set("string", "text"); hdf.set("num", 12345); Array arr = CREATE_MAP3("bool", false, "string", "anothertext", "num", 6789); hdf.set("arr", arr); VS(f_parse_hdf_string("bool = false\n" "string = text\n" "num = 12345\n" "arr {\n" " bool = false\n" " string = anothertext\n" " num = 6789\n" "}\n"), hdf); return Count(true); }
bool TestExtFile::test_parse_hdf_string() { Array hdf; hdf.set(s_bool, false); hdf.set(s_string, s_text); hdf.set(s_num, 12345); Array arr = CREATE_MAP3(s_bool, false, s_string, s_anothertext, s_num, 6789); hdf.set(s_arr, arr); VS(f_parse_hdf_string("bool = false\n" "string = text\n" "num = 12345\n" "arr {\n" " bool = false\n" " string = anothertext\n" " num = 6789\n" "}\n"), hdf); return Count(true); }