diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-10-18 23:59:22 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-10-18 23:59:22 +0200 |
commit | 2df37f42c15ac74cb27bbd38e0f896159acd4d19 (patch) | |
tree | 263540f8e4a3d2e3026b132fc2d01cd3d3beedd2 /tests-clar | |
parent | 4fd7e8e5837b9b32a4fc76aaadf5df1b1e6a5434 (diff) | |
download | libgit2-2df37f42c15ac74cb27bbd38e0f896159acd4d19.tar.gz |
refs: cover more refname validity edge cases
Diffstat (limited to 'tests-clar')
-rw-r--r-- | tests-clar/refs/isvalidname.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests-clar/refs/isvalidname.c b/tests-clar/refs/isvalidname.c index 8a31f5cbe..3cc838d34 100644 --- a/tests-clar/refs/isvalidname.c +++ b/tests-clar/refs/isvalidname.c @@ -21,4 +21,7 @@ void test_refs_isvalidname__wont_hopefully_choke_on_valid_formats(void) cl_assert_equal_i(true, git_reference_is_valid_name("ONE_LEVEL")); cl_assert_equal_i(true, git_reference_is_valid_name("refs/stash")); cl_assert_equal_i(true, git_reference_is_valid_name("refs/remotes/origin/bim_with_3d@11296")); + cl_assert_equal_i(true, git_reference_is_valid_name("refs/master{yesterday")); + cl_assert_equal_i(true, git_reference_is_valid_name("refs/master}yesterday")); + cl_assert_equal_i(true, git_reference_is_valid_name("refs/master{yesterday}")); } |