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
ea1b58b5
Commit
ea1b58b5
authored
Oct 18, 2004
by
Walt Ogburn
Committed by
Alexandre Julliard
Oct 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test zero exponents with and without signs.
parent
f56618a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
vartest.c
dlls/oleaut32/tests/vartest.c
+14
-0
No files found.
dlls/oleaut32/tests/vartest.c
View file @
ea1b58b5
...
...
@@ -972,6 +972,20 @@ static void test_VarParseNumFromStr(void)
EXPECT
(
1
,
NUMPRS_EXPONENT
,
NUMPRS_EXPONENT
,
5
,
0
,
1
);
EXPECT2
(
1
,
FAILDIG
);
/* The same for zero exponents */
CONVERT
(
"1e0"
,
NUMPRS_EXPONENT
);
EXPECT
(
1
,
NUMPRS_EXPONENT
,
NUMPRS_EXPONENT
,
3
,
0
,
0
);
EXPECT2
(
1
,
FAILDIG
);
/* Sign on a zero exponent doesn't matter */
CONVERT
(
"1e+0"
,
NUMPRS_EXPONENT
);
EXPECT
(
1
,
NUMPRS_EXPONENT
,
NUMPRS_EXPONENT
,
4
,
0
,
0
);
EXPECT2
(
1
,
FAILDIG
);
CONVERT
(
"1e-0"
,
NUMPRS_EXPONENT
);
EXPECT
(
1
,
NUMPRS_EXPONENT
,
NUMPRS_EXPONENT
,
4
,
0
,
0
);
EXPECT2
(
1
,
FAILDIG
);
/* Doesn't consume a real number exponent */
CONVERT
(
"1e1."
,
NUMPRS_EXPONENT
);
EXPECT
(
1
,
NUMPRS_EXPONENT
,
NUMPRS_EXPONENT
,
3
,
0
,
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