1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

fix LCS IDX

This commit is contained in:
Leibale
2023-05-14 14:44:34 +03:00
parent 37be30a8fe
commit dd5dd67bc1
2 changed files with 8 additions and 5 deletions

View File

@@ -21,12 +21,12 @@ describe('LCS IDX', () => {
client.lcsIdx('1', '2') client.lcsIdx('1', '2')
]); ]);
console.log(reply);
assert.deepEqual( assert.deepEqual(
reply, reply,
{ {
matches: [[[1, 2], [0, 1]]], matches: [
[[1, 2], [0, 1]]
],
len: 2 len: 2
} }
); );

View File

@@ -21,12 +21,15 @@ describe('LCS IDX WITHMATCHLEN', () => {
client.lcsIdxWithMatchLen('1', '2') client.lcsIdxWithMatchLen('1', '2')
]); ]);
console.log(reply);
assert.deepEqual( assert.deepEqual(
reply, reply,
{ {
matches: [ matches: [
[[[1, 2], [0, 1]]], [
2 [[1, 2], [0, 1], 2]
],
], ],
len: 2 len: 2
} }