-
Notifications
You must be signed in to change notification settings - Fork 688
Enable test cases #2566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable test cases #2566
Conversation
tests/jerry/octal.js
Outdated
| assert (18284877335 == 0210167213027); | ||
| assert (18284877335 != 0210167213030); | ||
| assert (18284877335 != 0210167213026); | ||
| assert (typeof 18284877335 == typeof 0210167213027); |
There was a problem hiding this comment.
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")
tests/jerry/octal.js
Outdated
| @@ -12,4 +12,5004 @@ | |||
| // See the License for the specific language governing permissions and | |||
| // limitations under the License. | |||
|
|
|||
| assert (010 === 8); | |||
| assert (18284877335 == 0210167213027); | |||
There was a problem hiding this comment.
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.
tests/jerry/octal.js
Outdated
| assert (62582931635 != 0722216740262); | ||
| assert (typeof 62582931635 == typeof 0722216740263); | ||
|
|
||
| assert (-91868027325 == -01 |
There was a problem hiding this comment.
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?
tests/jerry/weird-parts.js
Outdated
| @@ -0,0 +1,39 @@ | |||
| // Copyright JS Foundation and other contributors, http://js.foundation | |||
There was a problem hiding this comment.
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
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| assert (010 === 8); |
There was a problem hiding this comment.
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).
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
akosthekiss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
zherczeg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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