[PATCH 5/5] jscript/tests: Add tests with values related to INT_MAX

Jacek Caban jacek at codeweavers.com
Mon Jun 27 04:59:40 CDT 2011


On 06/26/11 18:28, Detlef Riekenberg wrote:
> How can we force tests to use VT_UI4?

It's not JScript builtin type, you need to extend tests host object for
that.

> --
> By by ... Detlef
> ---
>  dlls/jscript/tests/lang.js |   31 +++++++++++++++++++++++++++++++
>  1 files changed, 31 insertions(+), 0 deletions(-)
>
> diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js
> index b54eef2..b96788b 100644
> --- a/dlls/jscript/tests/lang.js
> +++ b/dlls/jscript/tests/lang.js
> @@ -306,6 +306,37 @@ tmp = 3/2;
>  ok(tmp === 1.5, "3/2 !== 1.5");
>  ok(getVT(tmp) === "VT_R8", "getVT(3/2) !== VT_R8");
>  
> +/* 0x7fffffff is 2147483647 is INT_MAX */
> +tmp = 2147483647*-1;

0x... is correct jscript syntax, why not use it?

Jacek



More information about the wine-devel mailing list