Skip to content

Conversation

@oranagra
Copy link
Member

@oranagra oranagra commented Jul 4, 2021

This makes it possible to distinguish between null response and an empty
array (currently the tests infra translates both to an empty string/list)

This makes it possible to distinguish between null response and an empty
array (currently the tests infra translates both to an empty string/list)
Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Beautiful!

@oranagra
Copy link
Member Author

oranagra commented Jul 4, 2021

side note:

i used to hate TCL... i still do..

@oranagra oranagra requested a review from yossigo July 4, 2021 12:19
Copy link
Contributor

@madolson madolson left a comment

Choose a reason for hiding this comment

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

TCL is a pretty good language for writing tests, but I will always hate it though because it caused Redis to have a bizarre type system. All integers are strings but not all strings are integers, sure, makes sense.

> incr foo
(integer) 1
> append foo hi
3
> get foo
"1hi"

@oranagra oranagra merged commit 7103367 into redis:unstable Jul 4, 2021
@oranagra oranagra deleted the test_infra_resp_raw_read branch July 4, 2021 16:44
@zuiderkwast
Copy link
Contributor

zuiderkwast commented Jul 4, 2021

@madolson yeah.. you don't even need append

127.0.0.1:6379> incr foo
(integer) 1
127.0.0.1:6379> get foo
"1"

([Edited] Append returns (integer) 3 btw.)

oranagra added a commit that referenced this pull request Jul 21, 2021
This makes it possible to distinguish between null response and an empty
array (currently the tests infra translates both to an empty string/list)

(cherry picked from commit 7103367)
(cherry picked from commit e04bce2)
oranagra added a commit that referenced this pull request Jul 21, 2021
This makes it possible to distinguish between null response and an empty
array (currently the tests infra translates both to an empty string/list)

(cherry picked from commit 7103367)
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Sep 8, 2021
This makes it possible to distinguish between null response and an empty
array (currently the tests infra translates both to an empty string/list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants