Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
889a3bb4
Commit
889a3bb4
authored
Jul 04, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix off-by-one in the SPOP test
parent
4315daa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Sets.cs
StackExchange.Redis.Tests/Sets.cs
+4
-4
No files found.
StackExchange.Redis.Tests/Sets.cs
View file @
889a3bb4
...
...
@@ -75,7 +75,7 @@ public void SetPopMulti_Multi()
var
random
=
db
.
SetPop
(
key
);
Assert
.
False
(
random
.
IsNull
);
Assert
.
True
((
int
)
random
>
0
);
Assert
.
True
((
int
)
random
<
10
);
Assert
.
True
((
int
)
random
<
=
10
);
Assert
.
Equal
(
9
,
db
.
SetLength
(
key
));
var
moreRandoms
=
db
.
SetPop
(
key
,
2
);
...
...
@@ -101,7 +101,7 @@ public void SetPopMulti_Single()
var
random
=
db
.
SetPop
(
key
);
Assert
.
False
(
random
.
IsNull
);
Assert
.
True
((
int
)
random
>
0
);
Assert
.
True
((
int
)
random
<
10
);
Assert
.
True
((
int
)
random
<
=
10
);
Assert
.
Equal
(
9
,
db
.
SetLength
(
key
));
var
moreRandoms
=
db
.
SetPop
(
key
,
1
);
...
...
@@ -130,7 +130,7 @@ public async Task SetPopMulti_Multi_Async()
var
random
=
await
db
.
SetPopAsync
(
key
).
ForAwait
();
Assert
.
False
(
random
.
IsNull
);
Assert
.
True
((
int
)
random
>
0
);
Assert
.
True
((
int
)
random
<
10
);
Assert
.
True
((
int
)
random
<
=
10
);
Assert
.
Equal
(
9
,
db
.
SetLength
(
key
));
var
moreRandoms
=
await
db
.
SetPopAsync
(
key
,
2
).
ForAwait
();
...
...
@@ -157,7 +157,7 @@ public async Task SetPopMulti_Single_Async()
var
random
=
await
db
.
SetPopAsync
(
key
).
ForAwait
();
Assert
.
False
(
random
.
IsNull
);
Assert
.
True
((
int
)
random
>
0
);
Assert
.
True
((
int
)
random
<
10
);
Assert
.
True
((
int
)
random
<
=
10
);
Assert
.
Equal
(
9
,
db
.
SetLength
(
key
));
var
moreRandoms
=
db
.
SetPop
(
key
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment