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
49ce878d
Commit
49ce878d
authored
Apr 02, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Math_cos tests.
parent
fe5785af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
api.js
dlls/jscript/tests/api.js
+30
-0
No files found.
dlls/jscript/tests/api.js
View file @
49ce878d
...
...
@@ -579,6 +579,36 @@ ok(tmp === Infinity, "Math.abs(-Infinite) = " + tmp);
tmp
=
Math
.
abs
(
-
3
,
2
);
ok
(
tmp
===
3
,
"Math.abs(-3, 2) = "
+
tmp
);
tmp
=
Math
.
cos
(
0
);
ok
(
tmp
===
1
,
"Math.cos(0) = "
+
tmp
);
tmp
=
Math
.
cos
(
Math
.
PI
/
2
);
ok
(
Math
.
floor
(
tmp
*
100
)
===
0
,
"Math.cos(Math.PI/2) = "
+
tmp
);
tmp
=
Math
.
cos
(
-
Math
.
PI
/
2
);
ok
(
Math
.
floor
(
tmp
*
100
)
===
0
,
"Math.cos(-Math.PI/2) = "
+
tmp
);
tmp
=
Math
.
cos
(
Math
.
PI
/
3
,
2
);
ok
(
Math
.
floor
(
tmp
*
100
)
===
50
,
"Math.cos(Math.PI/3, 2) = "
+
tmp
);
tmp
=
Math
.
cos
(
true
);
ok
(
Math
.
floor
(
tmp
*
100
)
===
54
,
"Math.cos(true) = "
+
tmp
);
tmp
=
Math
.
cos
(
false
);
ok
(
tmp
===
1
,
"Math.cos(false) = "
+
tmp
);
tmp
=
Math
.
cos
();
ok
(
isNaN
(
tmp
),
"Math.cos() is not NaN"
);
tmp
=
Math
.
cos
(
NaN
);
ok
(
isNaN
(
tmp
),
"Math.cos(NaN) is not NaN"
);
tmp
=
Math
.
cos
(
Infinity
);
ok
(
isNaN
(
tmp
),
"Math.cos(Infinity) is not NaN"
);
tmp
=
Math
.
cos
(
-
Infinity
);
ok
(
isNaN
(
tmp
),
"Math.cos(-Infinity) is not NaN"
);
tmp
=
Math
.
pow
(
2
,
2
);
ok
(
tmp
===
4
,
"Math.pow(2, 2) = "
+
tmp
);
...
...
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