Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-pq
Commits
f0b46e22
Commit
f0b46e22
authored
May 19, 2015
by
rht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run 'gofmt -s -w' on these files
parent
dd504bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
container_test.go
container_test.go
+5
-5
No files found.
container_test.go
View file @
f0b46e22
...
...
@@ -41,11 +41,11 @@ func TestQueuesReturnTypeIsSameAsParameterToPush(t *testing.T) {
func
TestCorrectnessOfPop
(
t
*
testing
.
T
)
{
q
:=
New
(
PriorityComparator
)
tasks
:=
[]
TestElem
{
TestElem
{
Key
:
"a"
,
Priority
:
9
},
TestElem
{
Key
:
"b"
,
Priority
:
4
},
TestElem
{
Key
:
"c"
,
Priority
:
3
},
TestElem
{
Key
:
"d"
,
Priority
:
0
},
TestElem
{
Key
:
"e"
,
Priority
:
6
},
{
Key
:
"a"
,
Priority
:
9
},
{
Key
:
"b"
,
Priority
:
4
},
{
Key
:
"c"
,
Priority
:
3
},
{
Key
:
"d"
,
Priority
:
0
},
{
Key
:
"e"
,
Priority
:
6
},
}
for
_
,
e
:=
range
tasks
{
q
.
Push
(
&
e
)
...
...
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