···11+(*---------------------------------------------------------------------------
22+ Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>. All rights reserved.
33+ SPDX-License-Identifier: ISC
44+ ---------------------------------------------------------------------------*)
55+66+(** JSON string comparison utilities for test suite validation. *)
77+88+val compare_json_strings : string -> string -> bool
99+(** [compare_json_strings expected actual] compares two JSON strings for
1010+ semantic equality, ignoring object key ordering. Returns [true] if the
1111+ parsed JSON structures are equal. *)
+13
tests/test_suite_lib/json_format.mli
···11+(*---------------------------------------------------------------------------
22+ Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>. All rights reserved.
33+ SPDX-License-Identifier: ISC
44+ ---------------------------------------------------------------------------*)
55+66+(** JSON formatting utilities for YAML value output. *)
77+88+val to_json : Yamlrw.Value.t -> string
99+(** [to_json v] formats a YAML value as a JSON string. *)
1010+1111+val documents_to_json : Yamlrw.Value.t list -> string
1212+(** [documents_to_json docs] formats multiple YAML documents as JSON strings
1313+ separated by newlines. *)
+10
tests/test_suite_lib/tree_format.mli
···11+(*---------------------------------------------------------------------------
22+ Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>. All rights reserved.
33+ SPDX-License-Identifier: ISC
44+ ---------------------------------------------------------------------------*)
55+66+(** Event tree formatting for yaml-test-suite compatibility. *)
77+88+val of_spanned_events : Yamlrw.Event.spanned list -> string
99+(** [of_spanned_events events] formats a list of spanned parser events as a tree
1010+ notation string compatible with the yaml-test-suite format. *)
+7
tests/test_yamlrw.mli
···11+(*---------------------------------------------------------------------------
22+ Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>. All rights reserved.
33+ SPDX-License-Identifier: ISC
44+ ---------------------------------------------------------------------------*)
55+66+val suite : string * unit Alcotest.test_case list
77+(** [suite] is the test suite for the Yamlrw library. *)