Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
af3c722f
You need to sign in or sign up before continuing.
Commit
af3c722f
authored
Apr 06, 2020
by
antirez
Browse files
LCS: more tests.
parent
ca8d6f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/string.tcl
View file @
af3c722f
...
@@ -441,4 +441,12 @@ start_server {tags {"string"}} {
...
@@ -441,4 +441,12 @@ start_server {tags {"string"}} {
test
{
LCS indexes
}
{
test
{
LCS indexes
}
{
dict get
[
r LCS IDX KEYS virus1 virus2
]
matches
dict get
[
r LCS IDX KEYS virus1 virus2
]
matches
}
{{{
238 238
}
{
239 239
}}
{{
236 236
}
{
238 238
}}
{{
229 230
}
{
236 237
}}
{{
224 224
}
{
235 235
}}
{{
1 222
}
{
13 234
}}}
}
{{{
238 238
}
{
239 239
}}
{{
236 236
}
{
238 238
}}
{{
229 230
}
{
236 237
}}
{{
224 224
}
{
235 235
}}
{{
1 222
}
{
13 234
}}}
test
{
LCS indexes with match len
}
{
dict get
[
r LCS IDX KEYS virus1 virus2 WITHMATCHLEN
]
matches
}
{{{
238 238
}
{
239 239
}
1
}
{{
236 236
}
{
238 238
}
1
}
{{
229 230
}
{
236 237
}
2
}
{{
224 224
}
{
235 235
}
1
}
{{
1 222
}
{
13 234
}
222
}}
test
{
LCS indexes with match len and minimum match len
}
{
dict get
[
r LCS IDX KEYS virus1 virus2 WITHMATCHLEN MINMATCHLEN 5
]
matches
}
{{{
1 222
}
{
13 234
}
222
}}
}
}
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