Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6aa2f989
Commit
6aa2f989
authored
Mar 28, 2012
by
antirez
Browse files
Test for redis.sha1hex().
parent
52ae8af8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/scripting.tcl
View file @
6aa2f989
...
...
@@ -214,6 +214,11 @@ start_server {tags {"scripting"}} {
r sadd myset a b c
r eval
{
return redis.call
(
'sort','myset','by','_','get','#','get','_:*'
)}
0
}
{{}
{}
{}
a b c
}
test
"redis.sha1hex() implementation"
{
list
[
r eval
{
return redis.sha1hex
(
''
)}
0
]
\
[
r eval
{
return redis.sha1hex
(
'Pizza & Mandolino'
)}
0
]
}
{
da39a3ee5e6b4b0d3255bfef95601890afd80709 74822d82031af7493c20eefa13bd07ec4fada82f
}
}
start_server
{
tags
{
"scripting repl"
}}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment