summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2017-05-13 14:24:33 +0100
committerRichard Maw <richard.maw@gmail.com>2017-05-13 14:24:33 +0100
commit1b31bd6c23e4335fff859e1a82acbf97c2b0929f (patch)
tree54595e0f20db333dde31da4abef7f6460fad151e
parent40e0442dd57b004e5024d52e0fe00ff835d493b3 (diff)
downloadgall-1b31bd6c23e4335fff859e1a82acbf97c2b0929f.tar.bz2
tests: Add test for file sha1ish normalise
-rw-r--r--test/test-gall.repository.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-gall.repository.lua b/test/test-gall.repository.lua
index 79bbc7e..9346473 100644
--- a/test/test-gall.repository.lua
+++ b/test/test-gall.repository.lua
@@ -111,6 +111,11 @@ function suite.normalise_short_sha()
assert(repo:normalise("8b50f4e"))
end
+function suite.normalise_sha1ish()
+ local repo = test_repo()
+ assert(repo:normalise("refs/heads/master:testblob"))
+end
+
function suite.error_normalise()
local repo = test_repo()
repo.path = "/DOES_NOT_EXIST"