Fix tests from jerry-test-suite.
This commit is contained in:
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = NaN, y = 1
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = 2, y = NaN
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = 2.8, y = 3.4
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = "abg", y = 'abh'
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = "abg", y = 'aBg'
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = false, y = true
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = 0.123, y = "0.124"
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = 0.123, y = "0.123e+2"
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = 0.123, y = "0.123a"
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = 0.123, y = "b0.123"
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = true, y = "-1"
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = true, y = "true"
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = true, y = "123"
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -15,4 +15,4 @@
|
||||
var x = Object("abc")
|
||||
var y = Object("abc")
|
||||
b = x, c = y
|
||||
assert(c == b)
|
||||
assert(!(c == b))
|
||||
@@ -14,4 +14,4 @@
|
||||
|
||||
var x = "a"
|
||||
var y = 2
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = 0.123, y = "0.123e+2"
|
||||
assert(x == y)
|
||||
assert(!(x == y))
|
||||
@@ -14,4 +14,4 @@
|
||||
|
||||
var x = "12.1e5"
|
||||
var y = 1210000
|
||||
assert(x != y)
|
||||
assert(!(x != y))
|
||||
@@ -12,5 +12,5 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var x = 123.00, y = 0.0123e+4
|
||||
assert(x === y)
|
||||
var x = 123.00, y = 0.0123e+4, eps = .000001
|
||||
assert(x <= y + eps && x >= y - eps)
|
||||
@@ -12,5 +12,5 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var x = 123.00, y = 0.0123e+4
|
||||
assert(x === y)
|
||||
var x = 123.00, y = 0.0123e+4, eps = .000001
|
||||
assert(x <= y + eps && x >= y - eps)
|
||||
Reference in New Issue
Block a user