Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
02453013
Commit
02453013
authored
Oct 05, 2010
by
Stefan Oberhumer
Committed by
Alexandre Julliard
Oct 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add some more tests for qsort().
parent
e368fd54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
string.c
dlls/ntdll/tests/string.c
+21
-0
No files found.
dlls/ntdll/tests/string.c
View file @
02453013
...
...
@@ -1175,6 +1175,27 @@ static void test_qsort(void)
"."
};
p_qsort
((
void
*
)
arr
,
0
,
sizeof
(
int
),
intcomparefunc
);
ok
(
arr
[
0
]
==
23
,
"badly sorted, nmemb=0, arr[0] is %d
\n
"
,
arr
[
0
]);
ok
(
arr
[
1
]
==
42
,
"badly sorted, nmemb=0, arr[1] is %d
\n
"
,
arr
[
1
]);
ok
(
arr
[
2
]
==
8
,
"badly sorted, nmemb=0, arr[2] is %d
\n
"
,
arr
[
2
]);
ok
(
arr
[
3
]
==
4
,
"badly sorted, nmemb=0, arr[3] is %d
\n
"
,
arr
[
3
]);
ok
(
arr
[
4
]
==
16
,
"badly sorted, nmemb=0, arr[4] is %d
\n
"
,
arr
[
4
]);
p_qsort
((
void
*
)
arr
,
1
,
sizeof
(
int
),
intcomparefunc
);
ok
(
arr
[
0
]
==
23
,
"badly sorted, nmemb=1, arr[0] is %d
\n
"
,
arr
[
0
]);
ok
(
arr
[
1
]
==
42
,
"badly sorted, nmemb=1, arr[1] is %d
\n
"
,
arr
[
1
]);
ok
(
arr
[
2
]
==
8
,
"badly sorted, nmemb=1, arr[2] is %d
\n
"
,
arr
[
2
]);
ok
(
arr
[
3
]
==
4
,
"badly sorted, nmemb=1, arr[3] is %d
\n
"
,
arr
[
3
]);
ok
(
arr
[
4
]
==
16
,
"badly sorted, nmemb=1, arr[4] is %d
\n
"
,
arr
[
4
]);
p_qsort
((
void
*
)
arr
,
5
,
0
,
intcomparefunc
);
ok
(
arr
[
0
]
==
23
,
"badly sorted, size=0, arr[0] is %d
\n
"
,
arr
[
0
]);
ok
(
arr
[
1
]
==
42
,
"badly sorted, size=0, arr[1] is %d
\n
"
,
arr
[
1
]);
ok
(
arr
[
2
]
==
8
,
"badly sorted, size=0, arr[2] is %d
\n
"
,
arr
[
2
]);
ok
(
arr
[
3
]
==
4
,
"badly sorted, size=0, arr[3] is %d
\n
"
,
arr
[
3
]);
ok
(
arr
[
4
]
==
16
,
"badly sorted, size=0, arr[4] is %d
\n
"
,
arr
[
4
]);
p_qsort
((
void
*
)
arr
,
5
,
sizeof
(
int
),
intcomparefunc
);
ok
(
arr
[
0
]
==
4
,
"badly sorted, arr[0] is %d
\n
"
,
arr
[
0
]);
ok
(
arr
[
1
]
==
8
,
"badly sorted, arr[1] is %d
\n
"
,
arr
[
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