Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-mod-1.js
blob: 64b2377daa79f92f3a7a04175956e441c04bb99f [
file
] [
log
] [
blame
]
description
(
"Tests that the DFG handles x % 1 correctly."
);
function
foo
(
x
)
{
return
x
%
1
;
}
dfgShouldBe
(
foo
,
"foo(-5.5)"
,
"-0.5"
);
dfgShouldBe
(
foo
,
"1 / foo(-1)"
,
"-Infinity"
);