Skip to content

Conversation

@repasics
Copy link
Contributor

@repasics repasics commented Oct 19, 2018

Enabled previously disabled test cases in math-pow.js. Everything works as expected.

JerryScript-DCO-1.0-Signed-off-by: Csaba Repasi repasics@inf.u-szeged.hu

assert (18284877335 == 0210167213027);
assert (18284877335 != 0210167213030);
assert (18284877335 != 0210167213026);
assert (typeof 18284877335 == typeof 0210167213027);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use plain string comparison here ("number")

@@ -12,4 +12,5004 @@
// See the License for the specific language governing permissions and
// limitations under the License.

assert (010 === 8);
assert (18284877335 == 0210167213027);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use strict equal (===). Same to the tests below.

assert (62582931635 != 0722216740262);
assert (typeof 62582931635 == typeof 0722216740263);

assert (-91868027325 == -01
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is very long. Could we generate these numbers somehow?

@@ -0,0 +1,39 @@
// Copyright JS Foundation and other contributors, http://js.foundation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the file name. I would call it: special-cases.js

@repasics repasics changed the title Examine commented tests, add new tests Enable test cases Oct 25, 2018
// See the License for the specific language governing permissions and
// limitations under the License.

assert (010 === 8);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this. I don't think that removing a completely valid and passing test file is a good idea (especially in a completely unrelated PR).

@akosthekiss akosthekiss added the test Related to testing label Oct 26, 2018
Enabled previously disabled test cases in math-pow.js. Everything works as expected.

JerryScript-DCO-1.0-Signed-off-by: Csaba Repasi repasics@inf.u-szeged.hu
Copy link
Member

@akosthekiss akosthekiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zherczeg zherczeg merged commit 3c1d0e6 into jerryscript-project:master Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants