Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Support Object in ARRINDEX #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Support Object in ARRINDEX #81

wants to merge 2 commits into from

Conversation

gkorland
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLA assistant check
All committers have signed the CLA.

@@ -485,6 +485,7 @@ def testArrIndexCommand(self):
self.assertEqual(r.execute_command('JSON.ARRINDEX', 'test', '.arr', 3), 3)
self.assertEqual(r.execute_command('JSON.ARRINDEX', 'test', '.arr', 2, 3), 4)
# self.assertEqual(r.execute_command('JSON.ARRINDEX', 'test', '.arr', '[4]'), -1)
self.assertEqual(r.execute_command('JSON.ARRINDEX', 'test', '.arr', "{\"val\":4}"), 7)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why double quotes and backslash when you could simply say:

self.assertEqual(r.execute_command('JSON.ARRINDEX', 'test', '.arr', '{"val":4}'), 7)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants