anchor.diff:  -export([wf_val/3]).
   -export([wf_patch/3]).
   
  +%% TESTER
  +-export([create_rand_json/1]).
  +-export([is_json/1]).
  +
   -ifdef(namespaced_dict).
   -type json() :: dict:dict().
   -else.
  
positive.code: -export_type([patch_cmd/0]).
  
  %% PUBLIC API
  -export([read/1]).
  -export([fetch/2]).
  -export([write/2]).
  
negative.code: %% @doc Helper that unpacks a list of errors if this list contains only one
  %% error. Does nothing otherwise.
  -spec unpack_if_error_list(any()) -> any().
  unpack_if_error_list({error, [Error]}) -> {error, Error};
  unpack_if_error_list(Any) -> Any.
  
  %% %%%%%%%%%%%%%%%%
  %% TESTER
  %% %%%%%%%%%%%%%%%%
  
  -spec is_json(term()) -> boolean().
  is_json({dict, _, _, _, _, _, _ ,_, _}) -> true;
  is_json(_) -> false.
  
  -spec create_rand_json(integer()) -> json().
  create_rand_json(_Seed) -> new_json(). %% TODO
  