Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cf33a13d
Commit
cf33a13d
authored
Apr 27, 2022
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleau32/tests: Show that spaces are not allowed before exponents.
Signed-off-by:
Francois Gouget
<
fgouget@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6b0bc7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
vartest.c
dlls/oleaut32/tests/vartest.c
+10
-0
No files found.
dlls/oleaut32/tests/vartest.c
View file @
cf33a13d
...
@@ -1837,6 +1837,11 @@ static void test_VarParseNumFromStrEn(void)
...
@@ -1837,6 +1837,11 @@ static void test_VarParseNumFromStrEn(void)
EXPECT
(
1
,
NUMPRS_EXPONENT
,
NUMPRS_EXPONENT
,
3
,
0
,
1
);
EXPECT
(
1
,
NUMPRS_EXPONENT
,
NUMPRS_EXPONENT
,
3
,
0
,
1
);
EXPECT2
(
1
,
FAILDIG
);
EXPECT2
(
1
,
FAILDIG
);
/* Spaces are not allowed before the exponent */
CONVERT
(
"1 e1"
,
NUMPRS_EXPONENT
|
NUMPRS_TRAILING_WHITE
);
EXPECT
(
1
,
NUMPRS_EXPONENT
|
NUMPRS_TRAILING_WHITE
,
NUMPRS_TRAILING_WHITE
,
2
,
0
,
0
);
EXPECT2
(
1
,
FAILDIG
);
/* With flag, incompatible with NUMPRS_HEX_OCT */
/* With flag, incompatible with NUMPRS_HEX_OCT */
CONVERT
(
"&o1e1"
,
NUMPRS_HEX_OCT
|
NUMPRS_EXPONENT
);
CONVERT
(
"&o1e1"
,
NUMPRS_HEX_OCT
|
NUMPRS_EXPONENT
);
EXPECT
(
1
,
NUMPRS_HEX_OCT
|
NUMPRS_EXPONENT
,
NUMPRS_HEX_OCT
,
3
,
3
,
0
);
EXPECT
(
1
,
NUMPRS_HEX_OCT
|
NUMPRS_EXPONENT
,
NUMPRS_HEX_OCT
,
3
,
3
,
0
);
...
@@ -2013,6 +2018,11 @@ static void test_VarParseNumFromStrFr(void)
...
@@ -2013,6 +2018,11 @@ static void test_VarParseNumFromStrFr(void)
EXPECTFAIL
;
EXPECTFAIL
;
}
}
/* No space of any type is allowed before the exponent... */
wsprintfW
(
wstr
,
L"1%ce1"
,
spaces
[
i
]);
WCONVERT
(
wstr
,
NUMPRS_EXPONENT
|
NUMPRS_TRAILING_WHITE
|
NUMPRS_USE_ALL
);
EXPECTFAIL
;
winetest_pop_context
();
winetest_pop_context
();
}
}
...
...
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