diff options
| -rw-r--r-- | source/hash.d | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/hash.d b/source/hash.d index 3071fa3..5a3028e 100644 --- a/source/hash.d +++ b/source/hash.d @@ -11,3 +11,9 @@ pure string hash(T : string)(T data) { import std.string; return hash(data.representation); } + +unittest { + immutable(ubyte)[] a = [ 'b', 'r', 'p', 'a', 's', 't', 'e' ]; + string s = "brpaste"; + assert(a.hash == s.hash); +} |
