From 1796138a273a674042ed23a9deed29220b4c3fbb Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Mon, 20 Oct 2014 17:20:33 +0400 Subject: [PATCH] Fixing some tests from internal test suite. --- tests/jerry-test-suite/11/11.04/11.04.04/11.04.04-006.js | 3 ++- tests/jerry-test-suite/11/11.09/11.09.01/11.09.01-037.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/jerry-test-suite/11/11.04/11.04.04/11.04.04-006.js b/tests/jerry-test-suite/11/11.04/11.04.04/11.04.04-006.js index 0633d38fe..80f935b0f 100644 --- a/tests/jerry-test-suite/11/11.04/11.04.04/11.04.04-006.js +++ b/tests/jerry-test-suite/11/11.04/11.04.04/11.04.04-006.js @@ -13,5 +13,6 @@ // limitations under the License. var a = 1.12; +var eps = 0.00000001; -assert(++a === 2.12) \ No newline at end of file +assert(++a >= 2.12 - eps && a <= 2.12 + eps); diff --git a/tests/jerry-test-suite/11/11.09/11.09.01/11.09.01-037.js b/tests/jerry-test-suite/11/11.09/11.09.01/11.09.01-037.js index a7059860a..e82a6c8ad 100644 --- a/tests/jerry-test-suite/11/11.09/11.09.01/11.09.01-037.js +++ b/tests/jerry-test-suite/11/11.09/11.09.01/11.09.01-037.js @@ -12,6 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -var x = 1e-323 +var x = 0.1e-323 var y = false -assert(x == y) \ No newline at end of file +assert(x == y)