mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
13 lines
295 B
C++
13 lines
295 B
C++
#include "tests.h"
|
|
|
|
BEGIN_TEST(testIntString_bug515273)
|
|
{
|
|
jsvalRoot v(cx);
|
|
EVAL("'42';", v.addr());
|
|
|
|
JSString *str = JSVAL_TO_STRING(v.value());
|
|
const char *bytes = JS_GetStringBytes(str);
|
|
CHECK(strcmp(bytes, "42") == 0);
|
|
return true;
|
|
}
|
|
END_TEST(testIntString_bug515273)
|