Closed scuml closed 3 years ago
Thanks for your PR. Could you check your test, it seems to be failing on Travis.
Tests pass, but failure occurs on the swift_test_backtrace
step - perhaps something wrong in Kitura/Package-Builder? Any ideas?
There is 2 failures in the test suite (see the end of the test command).
They occurs in test_ZAddFloat
. Could you have a look at it @scuml please? Thanks.
Thanks for pointing that out - didn't see those errors.
This should be passing now. Failure seems to be a timeout issue on Travis.
Comments added. Tests have been updated to test the new functionality.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
2 Code Smells
No Coverage information
0.0% Duplication
@mbarnach If swift 4 is not working on macOS, I think it's safe enough to drop. It's good to know Swift 4 on Linux is still working, though.
Description
Adds double support for sorted sets. Adds WITHSCORES parameter for ZRANGE
Motivation and Context
Sorted sets will use doubles (for microsecond timestamps and popularity algorithms for example). This adds support for doubles, while retaining integer support for backward-compatibility.
A withscores: parameter was also added to ZRANGE. It existed on ZREVRANGE, but previously was not carried over.
How Has This Been Tested?
A unit test
test_ZAddFloat
has been added to the test suite. This, and code that uses integer scores have both been tested.Checklist: