# ============================================================================ #
#
# General tests for YANTS types.
#
# ---------------------------------------------------------------------------- #

{ lib }: let

# ---------------------------------------------------------------------------- #

  yt = lib.ytypes;

# ---------------------------------------------------------------------------- #

  tests = {

# ---------------------------------------------------------------------------- #

    testGitRef_0 = {
      expr     = builtins.tryEval ( yt.Git.ref "foo" );
      expected = { success = true; value = "foo"; };
    };

    testGitRef_1 = {
      expr     = builtins.tryEval ( yt.Git.ref "foo/" );
      expected = { success = false; value = false; };
    };

    testGitRef_2 = {
      expr     = builtins.tryEval ( yt.Git.ref "foo/bar" );
      expected = { success = true; value = "foo/bar"; };
    };


# ---------------------------------------------------------------------------- #

  };  # End Tests


# ---------------------------------------------------------------------------- #

in tests


# ---------------------------------------------------------------------------- #
#
#
#
# ============================================================================ #
