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
27f327ae
Commit
27f327ae
authored
May 24, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
May 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Math_SQRT2 implementation and tests.
parent
12799db3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
math.c
dlls/jscript/math.c
+2
-2
api.js
dlls/jscript/tests/api.js
+5
-0
No files found.
dlls/jscript/math.c
View file @
27f327ae
...
...
@@ -120,8 +120,8 @@ static HRESULT Math_PI(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp
static
HRESULT
Math_SQRT2
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXM
E
(
"
\n
"
);
return
E_NOTIMPL
;
TRAC
E
(
"
\n
"
);
return
math_constant
(
M_SQRT2
,
flags
,
retv
)
;
}
static
HRESULT
Math_SQRT1_2
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
dlls/jscript/tests/api.js
View file @
27f327ae
...
...
@@ -675,4 +675,9 @@ ok(Math.floor(Math.LN2*100) === 69, "Math.LN2 = " + Math.LN2);
Math
.
LN2
=
"test"
;
ok
(
Math
.
floor
(
Math
.
LN2
*
100
)
===
69
,
"modified Math.LN2 = "
+
Math
.
LN2
);
ok
(
typeof
(
Math
.
SQRT2
)
===
"number"
,
"typeof(Math.SQRT2) = "
+
typeof
(
Math
.
SQRT2
));
ok
(
Math
.
floor
(
Math
.
SQRT2
*
100
)
===
141
,
"Math.SQRT2 = "
+
Math
.
SQRT2
);
Math
.
SQRT2
=
"test"
;
ok
(
Math
.
floor
(
Math
.
SQRT2
*
100
)
===
141
,
"modified Math.SQRT2 = "
+
Math
.
SQRT2
);
reportSuccess
();
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