Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTests of new list methods; list methods return NULL if empty / non-existent #13
Conversation
…(length of list) for the value specified by redis. Note: The current code may have a type inconsistency in that the native return from redis is an unsigned integer. However, because .Machine$integer.max is signed I don't coerce the response into an integer and instead allow it to return as a numeric. I'm not 100% of the sure of the consequences of this decision.
…e certainly are other behaviors possible, but this seems reasonably consistent with listLPop which on a non-existent key returns redis' (nil).
…t was returning 0 rather than the expected 1. Fixed and made the comment reflect the actual test.
Tests of new list methods; list methods return NULL if empty / non-existent
462eedf
into
eddelbuettel:master
This PR:
My apologies for the piecemeal contribution and appreciation for @eddelbuettel 's patience and guidance.