import typia from "typia";

import { CustomGuardError } from "../../internal/CustomGuardError";
import { _test_json_assertStringify } from "../../internal/_test_json_assertStringify";
import { DynamicTree } from "../../structures/DynamicTree";

export const test_json_assertStringifyCustom_DynamicTree =
  _test_json_assertStringify(CustomGuardError)("DynamicTree")<DynamicTree>(
    DynamicTree,
  )((input) =>
    typia.json.assertStringify<DynamicTree>(
      input,
      (p) => new CustomGuardError(p),
    ),
  );
