From 717bcbaedd1f97e2d2b97ca3bde28c80b1ac2c13 Mon Sep 17 00:00:00 2001
From: rwaldron
Date: Wed, 18 Aug 2021 12:00:28 -0400
Subject: [PATCH] Transform legacy format to harness assertions:
test/built-ins/R*/**/*.js
---
test/built-ins/RegExp/S15.10.1_A1_T1.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T10.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T11.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T12.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T13.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T14.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T15.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T16.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T2.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T3.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T4.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T5.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T6.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T7.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T8.js | 13 ++--
test/built-ins/RegExp/S15.10.1_A1_T9.js | 13 ++--
test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js | 2 -
test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js | 2 -
test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js | 2 -
test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js | 2 -
test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js | 2 -
test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js | 7 +-
test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js | 7 +-
test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js | 4 --
test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js | 10 +--
test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js | 6 --
test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js | 10 +--
test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js | 10 +--
test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js | 1 -
test/built-ins/RegExp/S15.10.2.11_A1_T1.js | 2 -
test/built-ins/RegExp/S15.10.2.11_A1_T4.js | 2 -
test/built-ins/RegExp/S15.10.2.11_A1_T5.js | 2 -
test/built-ins/RegExp/S15.10.2.11_A1_T6.js | 3 -
test/built-ins/RegExp/S15.10.2.11_A1_T7.js | 3 -
test/built-ins/RegExp/S15.10.2.11_A1_T8.js | 4 +-
test/built-ins/RegExp/S15.10.2.11_A1_T9.js | 4 +-
test/built-ins/RegExp/S15.10.2.12_A3_T5.js | 15 ++--
test/built-ins/RegExp/S15.10.2.12_A4_T5.js | 15 ++--
test/built-ins/RegExp/S15.10.2.13_A1_T1.js | 8 +--
test/built-ins/RegExp/S15.10.2.13_A1_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T12.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T13.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T14.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T15.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T17.js | 5 +-
test/built-ins/RegExp/S15.10.2.13_A1_T2.js | 8 +--
test/built-ins/RegExp/S15.10.2.13_A1_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T7.js | 5 +-
test/built-ins/RegExp/S15.10.2.13_A1_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A1_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A2_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A2_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A2_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A2_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A2_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A2_T6.js | 5 +-
test/built-ins/RegExp/S15.10.2.13_A2_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A2_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A3_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A3_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A3_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.13_A3_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.15_A1_T1.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T10.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T11.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T12.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T13.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T14.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T15.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T16.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T17.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T18.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T19.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T2.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T20.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T21.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T22.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T23.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T24.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T25.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T26.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T27.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T28.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T29.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T3.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T30.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T31.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T32.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T33.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T34.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T35.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T36.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T37.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T38.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T39.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T4.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T40.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T41.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T5.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T6.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T7.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T8.js | 11 +--
test/built-ins/RegExp/S15.10.2.15_A1_T9.js | 11 +--
test/built-ins/RegExp/S15.10.2.3_A1_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T12.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T13.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T14.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T15.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T16.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T17.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T5.js | 5 +-
test/built-ins/RegExp/S15.10.2.3_A1_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T7.js | 5 +-
test/built-ins/RegExp/S15.10.2.3_A1_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.3_A1_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.5_A1_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.5_A1_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.5_A1_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.5_A1_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.5_A1_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A1_T1.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A1_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A1_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A1_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A1_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A2_T1.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A2_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A2_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A2_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A2_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A2_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A2_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A2_T7.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A2_T8.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A2_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T12.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T13.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A3_T14.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T15.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A3_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T3.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A3_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T5.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A3_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A3_T9.js | 5 +-
test/built-ins/RegExp/S15.10.2.6_A4_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A4_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A4_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A4_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A4_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A4_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A4_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A4_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A5_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A5_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A6_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A6_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A6_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.6_A6_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T12.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T2.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A1_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A1_T9.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A2_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A2_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A2_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A2_T4.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A3_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T10.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A3_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T12.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T13.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T14.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T3.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A3_T4.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A3_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A3_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T12.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T13.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T14.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T15.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T16.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T17.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T18.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T19.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T20.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T21.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A4_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A4_T8.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A4_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T12.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T3.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A5_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A5_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A6_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A6_T2.js | 5 +-
test/built-ins/RegExp/S15.10.2.7_A6_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A6_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A6_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.7_A6_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A1_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A1_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A1_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A1_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A1_T5.js | 5 +-
test/built-ins/RegExp/S15.10.2.8_A2_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A2_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A2_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A2_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A2_T3.js | 5 +-
test/built-ins/RegExp/S15.10.2.8_A2_T4.js | 5 +-
test/built-ins/RegExp/S15.10.2.8_A2_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A2_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A2_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A2_T8.js | 5 +-
test/built-ins/RegExp/S15.10.2.8_A2_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T10.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T11.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T12.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T13.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T14.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T15.js | 42 ++++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T16.js | 42 ++++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T17.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T18.js | 5 +-
test/built-ins/RegExp/S15.10.2.8_A3_T19.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T20.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T21.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T22.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T23.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T24.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T25.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T26.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T27.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T28.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T29.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T3.js | 5 +-
test/built-ins/RegExp/S15.10.2.8_A3_T30.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T31.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T32.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T33.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A3_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T6.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T7.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T8.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A4_T9.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A5_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.8_A5_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.9_A1_T1.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.9_A1_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.9_A1_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2.9_A1_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.2_A1_T1.js | 9 +--
test/built-ins/RegExp/S15.10.3.1_A1_T1.js | 5 +-
test/built-ins/RegExp/S15.10.3.1_A1_T2.js | 5 +-
test/built-ins/RegExp/S15.10.3.1_A1_T3.js | 5 +-
test/built-ins/RegExp/S15.10.3.1_A1_T4.js | 5 +-
test/built-ins/RegExp/S15.10.3.1_A1_T5.js | 5 +-
test/built-ins/RegExp/S15.10.3.1_A2_T1.js | 13 ++--
test/built-ins/RegExp/S15.10.3.1_A2_T2.js | 13 ++--
test/built-ins/RegExp/S15.10.3.1_A3_T1.js | 14 ++--
test/built-ins/RegExp/S15.10.3.1_A3_T2.js | 14 ++--
test/built-ins/RegExp/S15.10.4.1_A1_T1.js | 38 +++++-----
test/built-ins/RegExp/S15.10.4.1_A1_T2.js | 36 +++++-----
test/built-ins/RegExp/S15.10.4.1_A1_T3.js | 36 +++++-----
test/built-ins/RegExp/S15.10.4.1_A1_T4.js | 36 +++++-----
test/built-ins/RegExp/S15.10.4.1_A1_T5.js | 36 +++++-----
test/built-ins/RegExp/S15.10.4.1_A2_T1.js | 1 -
test/built-ins/RegExp/S15.10.4.1_A2_T2.js | 11 +--
test/built-ins/RegExp/S15.10.4.1_A3_T1.js | 17 +----
test/built-ins/RegExp/S15.10.4.1_A3_T2.js | 17 +----
test/built-ins/RegExp/S15.10.4.1_A3_T3.js | 17 +----
test/built-ins/RegExp/S15.10.4.1_A3_T4.js | 17 +----
test/built-ins/RegExp/S15.10.4.1_A3_T5.js | 17 +----
test/built-ins/RegExp/S15.10.4.1_A4_T1.js | 23 ++----
test/built-ins/RegExp/S15.10.4.1_A4_T2.js | 17 +----
test/built-ins/RegExp/S15.10.4.1_A4_T3.js | 17 +----
test/built-ins/RegExp/S15.10.4.1_A4_T4.js | 23 ++----
test/built-ins/RegExp/S15.10.4.1_A4_T5.js | 17 +----
test/built-ins/RegExp/S15.10.4.1_A5_T1.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A5_T3.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A5_T4.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A5_T6.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A5_T7.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A5_T8.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A5_T9.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A6_T1.js | 5 +-
test/built-ins/RegExp/S15.10.4.1_A7_T1.js | 5 +-
test/built-ins/RegExp/S15.10.4.1_A7_T2.js | 9 +--
test/built-ins/RegExp/S15.10.4.1_A8_T1.js | 29 ++------
test/built-ins/RegExp/S15.10.4.1_A8_T10.js | 29 ++------
test/built-ins/RegExp/S15.10.4.1_A8_T11.js | 29 ++------
test/built-ins/RegExp/S15.10.4.1_A8_T12.js | 9 ++-
test/built-ins/RegExp/S15.10.4.1_A8_T13.js | 9 ++-
test/built-ins/RegExp/S15.10.4.1_A8_T2.js | 29 ++------
test/built-ins/RegExp/S15.10.4.1_A8_T3.js | 29 ++------
test/built-ins/RegExp/S15.10.4.1_A8_T4.js | 29 ++------
test/built-ins/RegExp/S15.10.4.1_A8_T5.js | 29 ++------
test/built-ins/RegExp/S15.10.4.1_A8_T6.js | 9 ++-
test/built-ins/RegExp/S15.10.4.1_A8_T7.js | 9 ++-
test/built-ins/RegExp/S15.10.4.1_A8_T8.js | 9 ++-
test/built-ins/RegExp/S15.10.4.1_A8_T9.js | 29 ++------
test/built-ins/RegExp/S15.10.4.1_A9_T1.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A9_T2.js | 13 ++--
test/built-ins/RegExp/S15.10.4.1_A9_T3.js | 13 ++--
test/built-ins/RegExp/S15.10.5_A1.js | 6 +-
test/built-ins/RegExp/S15.10.5_A2_T1.js | 10 +--
test/built-ins/RegExp/S15.10.5_A2_T2.js | 5 +-
test/built-ins/RegExp/S15.10.7_A1_T1.js | 13 ++--
test/built-ins/RegExp/S15.10.7_A1_T2.js | 11 +--
test/built-ins/RegExp/S15.10.7_A2_T1.js | 11 +--
test/built-ins/RegExp/S15.10.7_A2_T2.js | 11 +--
test/built-ins/RegExp/S15.10.7_A3_T1.js | 20 ++----
test/built-ins/RegExp/S15.10.7_A3_T2.js | 20 ++----
.../RegExp/prototype/S15.10.5.1_A1.js | 6 +-
.../RegExp/prototype/S15.10.5.1_A2.js | 26 ++++---
.../RegExp/prototype/S15.10.5.1_A3.js | 21 +++---
.../RegExp/prototype/S15.10.5.1_A4.js | 13 ++--
.../RegExp/prototype/S15.10.6.1_A1_T1.js | 10 +--
.../RegExp/prototype/S15.10.6.1_A1_T2.js | 18 ++---
.../RegExp/prototype/S15.10.6_A1_T1.js | 10 +--
.../RegExp/prototype/S15.10.6_A1_T2.js | 5 +-
.../RegExp/prototype/exec/S15.10.6.2_A10.js | 21 +++---
.../RegExp/prototype/exec/S15.10.6.2_A11.js | 15 ++--
.../RegExp/prototype/exec/S15.10.6.2_A12.js | 8 +--
.../RegExp/prototype/exec/S15.10.6.2_A1_T1.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T10.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T11.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T12.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T13.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T14.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T15.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T16.js | 4 +-
.../prototype/exec/S15.10.6.2_A1_T17.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T18.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T19.js | 45 ++++++------
.../RegExp/prototype/exec/S15.10.6.2_A1_T2.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T20.js | 45 ++++++------
.../prototype/exec/S15.10.6.2_A1_T21.js | 45 ++++++------
.../RegExp/prototype/exec/S15.10.6.2_A1_T3.js | 45 ++++++------
.../RegExp/prototype/exec/S15.10.6.2_A1_T4.js | 45 ++++++------
.../RegExp/prototype/exec/S15.10.6.2_A1_T5.js | 45 ++++++------
.../RegExp/prototype/exec/S15.10.6.2_A1_T6.js | 45 ++++++------
.../RegExp/prototype/exec/S15.10.6.2_A1_T7.js | 9 ++-
.../RegExp/prototype/exec/S15.10.6.2_A1_T8.js | 7 +-
.../RegExp/prototype/exec/S15.10.6.2_A1_T9.js | 7 +-
.../RegExp/prototype/exec/S15.10.6.2_A2_T1.js | 13 ++--
.../prototype/exec/S15.10.6.2_A2_T10.js | 13 ++--
.../RegExp/prototype/exec/S15.10.6.2_A2_T2.js | 13 ++--
.../RegExp/prototype/exec/S15.10.6.2_A2_T3.js | 13 ++--
.../RegExp/prototype/exec/S15.10.6.2_A2_T4.js | 15 ++--
.../RegExp/prototype/exec/S15.10.6.2_A2_T5.js | 11 +--
.../RegExp/prototype/exec/S15.10.6.2_A2_T6.js | 13 ++--
.../RegExp/prototype/exec/S15.10.6.2_A2_T7.js | 13 ++--
.../RegExp/prototype/exec/S15.10.6.2_A2_T8.js | 13 ++--
.../RegExp/prototype/exec/S15.10.6.2_A2_T9.js | 13 ++--
.../RegExp/prototype/exec/S15.10.6.2_A3_T1.js | 18 ++---
.../RegExp/prototype/exec/S15.10.6.2_A3_T2.js | 13 ++--
.../RegExp/prototype/exec/S15.10.6.2_A3_T3.js | 17 ++---
.../RegExp/prototype/exec/S15.10.6.2_A3_T4.js | 17 ++---
.../RegExp/prototype/exec/S15.10.6.2_A3_T5.js | 22 +++---
.../RegExp/prototype/exec/S15.10.6.2_A3_T6.js | 22 +++---
.../RegExp/prototype/exec/S15.10.6.2_A3_T7.js | 22 +++---
.../RegExp/prototype/exec/S15.10.6.2_A4_T1.js | 72 ++++++++++---------
.../prototype/exec/S15.10.6.2_A4_T10.js | 72 ++++++++++---------
.../prototype/exec/S15.10.6.2_A4_T11.js | 43 +++++------
.../prototype/exec/S15.10.6.2_A4_T12.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A4_T2.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A4_T3.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A4_T4.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A4_T5.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A4_T6.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A4_T7.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A4_T8.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A4_T9.js | 72 ++++++++++---------
.../RegExp/prototype/exec/S15.10.6.2_A5_T1.js | 47 ++++++------
.../RegExp/prototype/exec/S15.10.6.2_A5_T2.js | 11 +--
.../RegExp/prototype/exec/S15.10.6.2_A5_T3.js | 22 ++----
.../RegExp/prototype/exec/S15.10.6.2_A6.js | 10 +--
.../RegExp/prototype/exec/S15.10.6.2_A7.js | 10 ++-
.../RegExp/prototype/exec/S15.10.6.2_A8.js | 30 ++++----
.../RegExp/prototype/exec/S15.10.6.2_A9.js | 28 ++++----
.../RegExp/prototype/global/S15.10.7.2_A10.js | 10 +--
.../RegExp/prototype/global/S15.10.7.2_A8.js | 25 ++++---
.../RegExp/prototype/global/S15.10.7.2_A9.js | 17 ++---
.../prototype/ignoreCase/S15.10.7.3_A10.js | 14 ++--
.../prototype/ignoreCase/S15.10.7.3_A8.js | 25 ++++---
.../prototype/ignoreCase/S15.10.7.3_A9.js | 17 ++---
.../prototype/multiline/S15.10.7.4_A10.js | 10 +--
.../prototype/multiline/S15.10.7.4_A8.js | 25 ++++---
.../prototype/multiline/S15.10.7.4_A9.js | 17 ++---
.../RegExp/prototype/test/S15.10.6.3_A10.js | 21 +++---
.../RegExp/prototype/test/S15.10.6.3_A11.js | 15 ++--
.../RegExp/prototype/test/S15.10.6.3_A1_T1.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T10.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T11.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T12.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T13.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T14.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T15.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T16.js | 5 +-
.../prototype/test/S15.10.6.3_A1_T17.js | 5 +-
.../prototype/test/S15.10.6.3_A1_T18.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T19.js | 9 +--
.../RegExp/prototype/test/S15.10.6.3_A1_T2.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T20.js | 5 +-
.../prototype/test/S15.10.6.3_A1_T21.js | 9 +--
.../prototype/test/S15.10.6.3_A1_T22.js | 22 ++----
.../RegExp/prototype/test/S15.10.6.3_A1_T3.js | 9 +--
.../RegExp/prototype/test/S15.10.6.3_A1_T4.js | 9 +--
.../RegExp/prototype/test/S15.10.6.3_A1_T5.js | 9 +--
.../RegExp/prototype/test/S15.10.6.3_A1_T6.js | 9 +--
.../RegExp/prototype/test/S15.10.6.3_A1_T7.js | 9 ++-
.../RegExp/prototype/test/S15.10.6.3_A1_T8.js | 7 +-
.../RegExp/prototype/test/S15.10.6.3_A1_T9.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A2_T1.js | 11 +--
.../prototype/test/S15.10.6.3_A2_T10.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A2_T2.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A2_T3.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A2_T4.js | 13 ++--
.../RegExp/prototype/test/S15.10.6.3_A2_T5.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A2_T6.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A2_T7.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A2_T8.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A2_T9.js | 11 +--
.../RegExp/prototype/test/S15.10.6.3_A6.js | 10 +--
.../RegExp/prototype/test/S15.10.6.3_A7.js | 10 ++-
.../RegExp/prototype/test/S15.10.6.3_A8.js | 30 ++++----
.../RegExp/prototype/test/S15.10.6.3_A9.js | 28 ++++----
.../prototype/toString/S15.10.6.4_A10.js | 21 +++---
.../prototype/toString/S15.10.6.4_A11.js | 19 ++---
.../prototype/toString/S15.10.6.4_A6.js | 10 +--
.../prototype/toString/S15.10.6.4_A7.js | 14 ++--
.../prototype/toString/S15.10.6.4_A8.js | 30 ++++----
.../prototype/toString/S15.10.6.4_A9.js | 28 ++++----
489 files changed, 6296 insertions(+), 5579 deletions(-)
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T1.js b/test/built-ins/RegExp/S15.10.1_A1_T1.js
index 20ff06134a..a43e3d2983 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T1.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T1
description: Tested RegExp is "a**"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**")));
+ throw new Test262Error('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**")));
} catch (e) {
- if ((e instanceof SyntaxError !== true)) {
- throw new Test262Error('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T10.js b/test/built-ins/RegExp/S15.10.1_A1_T10.js
index 9a7796c8ce..76279d3407 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T10.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T10
description: Tested RegExp is "++a"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a")));
+ throw new Test262Error('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T11.js b/test/built-ins/RegExp/S15.10.1_A1_T11.js
index c08950dee7..c0f65b9b1d 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T11.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T11
description: Tested RegExp is "?a"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a")));
+ throw new Test262Error('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T12.js b/test/built-ins/RegExp/S15.10.1_A1_T12.js
index 1a6fb3fc14..0712273327 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T12.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T12
description: Tested RegExp is "??a"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a")));
+ throw new Test262Error('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T13.js b/test/built-ins/RegExp/S15.10.1_A1_T13.js
index 9575c08edb..bdd1cb21d0 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T13.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T13.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T13
description: Tested RegExp is "x{1}{1,}"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}")));
+ throw new Test262Error('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T14.js b/test/built-ins/RegExp/S15.10.1_A1_T14.js
index 62d1db6f52..f821999ba4 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T14.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T14.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T14
description: Tested RegExp is "x{1,2}{1}"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}")));
+ throw new Test262Error('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T15.js b/test/built-ins/RegExp/S15.10.1_A1_T15.js
index 3c1265ec56..14e76c6b68 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T15.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T15.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T15
description: Tested RegExp is "x{1,}{1}"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}")));
+ throw new Test262Error('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T16.js b/test/built-ins/RegExp/S15.10.1_A1_T16.js
index e2ba74cabb..4ede7a3a43 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T16.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T16.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T16
description: Tested RegExp is "x{0,1}{1,}"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}")));
+ throw new Test262Error('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T2.js b/test/built-ins/RegExp/S15.10.1_A1_T2.js
index 70eaedc47d..08c78077a9 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T2.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T2
description: Tested RegExp is "a***"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***")));
+ throw new Test262Error('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T3.js b/test/built-ins/RegExp/S15.10.1_A1_T3.js
index 2d87505fb5..b3828503f7 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T3.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T3
description: Tested RegExp is "a++"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++")));
+ throw new Test262Error('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T4.js b/test/built-ins/RegExp/S15.10.1_A1_T4.js
index 6dc03c99ac..10c54d82e2 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T4.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T4
description: Tested RegExp is "a+++"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++")));
+ throw new Test262Error('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T5.js b/test/built-ins/RegExp/S15.10.1_A1_T5.js
index 49d030a737..a23adfdda9 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T5.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T5
description: Tested RegExp is "a???"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???")));
+ throw new Test262Error('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T6.js b/test/built-ins/RegExp/S15.10.1_A1_T6.js
index c6237b8c8f..c0d77407c0 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T6.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T6
description: Tested RegExp is "a????"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????")));
+ throw new Test262Error('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T7.js b/test/built-ins/RegExp/S15.10.1_A1_T7.js
index be112b4b0d..574eb0313d 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T7.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T7
description: Tested RegExp is "*a"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a")));
+ throw new Test262Error('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T8.js b/test/built-ins/RegExp/S15.10.1_A1_T8.js
index 6fe823b8ce..0ae23602f4 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T8.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T8
description: Tested RegExp is "**a"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a")));
+ throw new Test262Error('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T9.js b/test/built-ins/RegExp/S15.10.1_A1_T9.js
index 4f520d5696..24bf179cb5 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T9.js
@@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T9
description: Tested RegExp is "+a"
---*/
-//CHECK#1
try {
- throw new Test262Error('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a")));
+ throw new Test262Error('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- throw new Test262Error('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js
index 45fd18d7af..0df0436fba 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js
@@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.1_T1
description: Use \t in RegExp and \u0009 in tested string
---*/
-//CHECK#1
var arr = /\t/.exec("\u0009");
if ((arr === null) || (arr[0] !== "\u0009")) {
throw new Test262Error('#1: var arr = /\\t/.exec("\\u0009"); arr[0] === "\\u0009". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
var arr = /\t\t/.exec("a\u0009\u0009b");
if ((arr === null) || (arr[0] !== "\u0009\u0009")) {
throw new Test262Error('#2: var arr = /\\t\\t/.exec("a\\u0009\\u0009b"); arr[0] === "\\u0009\\u0009". Actual. ' + (arr && arr[0]));
diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js
index a6e201d3fa..34efaf9895 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js
@@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.2_T1
description: Use \n in RegExp and \u000A in tested string
---*/
-//CHECK#1
var arr = /\n/.exec("\u000A");
if ((arr === null) || (arr[0] !== "\u000A")) {
throw new Test262Error('#1: var arr = /\\n/.exec("\\u000A"); arr[0] === "\\u000A". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
var arr = /\n\n/.exec("a\u000A\u000Ab");
if ((arr === null) || (arr[0] !== "\u000A\u000A")) {
throw new Test262Error('#2: var arr = /\\n\\n/.exec("a\\u000A\\u000Ab"); arr[0] === "\\u000A\\u000A". Actual. ' + (arr && arr[0]));
diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js
index 3b0e954e19..784b11a26f 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js
@@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.3_T1
description: Use \v in RegExp and \u000B in tested string
---*/
-//CHECK#1
var arr = /\v/.exec("\u000B");
if ((arr === null) || (arr[0] !== "\u000B")) {
throw new Test262Error('#1: var arr = /\\v/.exec("\\u000B"); arr[0] === "\\u000B". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
var arr = /\v\v/.exec("a\u000B\u000Bb");
if ((arr === null) || (arr[0] !== "\u000B\u000B")) {
throw new Test262Error('#2: var arr = /\\v\\v/.exec("a\\u000B\\u000Bb"); arr[0] === "\\u000B\\u000B". Actual. ' + (arr && arr[0]));
diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js
index d9e33f1112..45a8588e72 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js
@@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.4_T1
description: Use \f in RegExp and \u000C in tested string
---*/
-//CHECK#1
var arr = /\f/.exec("\u000C");
if ((arr === null) || (arr[0] !== "\u000C")) {
throw new Test262Error('#1: var arr = /\\f/.exec("\\u000C"); arr[0] === "\\u000C". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
var arr = /\f\f/.exec("a\u000C\u000Cb");
if ((arr === null) || (arr[0] !== "\u000C\u000C")) {
throw new Test262Error('#2: var arr = /\\f\\f/.exec("a\\u000C\\u000Cb"); arr[0] === "\\u000C\\u000C". Actual. ' + (arr && arr[0]));
diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js
index 62fe9bbe2a..f262e658d4 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js
@@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.5_T1
description: Use \r in RegExp and \u000D in tested string
---*/
-//CHECK#1
var arr = /\r/.exec("\u000D");
if ((arr === null) || (arr[0] !== "\u000D")) {
throw new Test262Error('#1: var arr = /\\r/.exec("\\u000D"); arr[0] === "\\u000D". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
var arr = /\r\r/.exec("a\u000D\u000Db");
if ((arr === null) || (arr[0] !== "\u000D\u000D")) {
throw new Test262Error('#2: var arr = /\\r\\r/.exec("a\\u000D\\u000Db"); arr[0] === "\\u000D\\u000D". Actual. ' + (arr && arr[0]));
diff --git a/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js
index 6387f62ae9..1080046d24 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js
@@ -7,8 +7,7 @@ es5id: 15.10.2.10_A2.1_T1
description: "ControlLetter :: A - Z"
---*/
-//CHECK#0041-005A
-var result = true;
+var result = true;
for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
var str = String.fromCharCode(alpha % 32);
var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str);
@@ -17,6 +16,4 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
}
}
-if (result !== true) {
- throw new Test262Error('#1: CharacterEscape :: c A - Z');
-}
+assert.sameValue(result, true, 'The value of result is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js
index 720ac8c18e..b3ddb788de 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js
@@ -7,8 +7,7 @@ es5id: 15.10.2.10_A2.1_T2
description: "ControlLetter :: a - z"
---*/
-//CHECK#0061-007A
-var result = true;
+var result = true;
for (var alpha = 0x0061; alpha <= 0x007A; alpha++) {
var str = String.fromCharCode(alpha % 32);
var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str);
@@ -17,6 +16,4 @@ for (var alpha = 0x0061; alpha <= 0x007A; alpha++) {
}
}
-if (result !== true) {
- throw new Test262Error('#1: CharacterEscape :: c a - z');
-}
+assert.sameValue(result, true, 'The value of result is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js
index 906ddd7333..f688f181dc 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js
@@ -7,25 +7,21 @@ es5id: 15.10.2.10_A3.1_T1
description: Tested string include equal unicode symbols
---*/
-//CHECK#0
var arr = /\x00/.exec("\u0000");
if ((arr === null) || (arr[0] !== "\u0000")) {
throw new Test262Error('#0: var arr = /\\x00/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
}
-//CHECK#1
var arr = /\x01/.exec("\u0001");
if ((arr === null) || (arr[0] !== "\u0001")) {
throw new Test262Error('#1: var arr = /\\x01/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
var arr = /\x0A/.exec("\u000A");
if ((arr === null) || (arr[0] !== "\u000A")) {
throw new Test262Error('#2: var arr = /\\x0A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0]));
}
-//CHECK#3
var arr = /\xFF/.exec("\u00FF");
if ((arr === null) || (arr[0] !== "\u00FF")) {
throw new Test262Error('#3: var arr = /\\xFF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0]));
diff --git a/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js
index 524415ab03..1ee65476bd 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js
@@ -7,7 +7,6 @@ es5id: 15.10.2.10_A3.1_T2
description: Checking ENGLISH CAPITAL ALPHABET and english small alphabet
---*/
-//CHECK#41-5A
var hex = ["\\x41", "\\x42", "\\x43", "\\x44", "\\x45", "\\x46", "\\x47", "\\x48", "\\x49", "\\x4A", "\\x4B", "\\x4C", "\\x4D", "\\x4E", "\\x4F", "\\x50", "\\x51", "\\x52", "\\x53", "\\x54", "\\x55", "\\x56", "\\x57", "\\x58", "\\x59", "\\x5A"];
var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
var result = true;
@@ -18,11 +17,8 @@ for (var index = 0; index < hex.length; index++) {
}
}
-if (result !== true) {
- throw new Test262Error('#1: ENGLISH CAPITAL ALPHABET');
-}
+assert.sameValue(result, true, 'The value of result is expected to be true');
-//CHECK#61-7A
hex = ["\\x61", "\\x62", "\\x63", "\\x64", "\\x65", "\\x66", "\\x67", "\\x68", "\\x69", "\\x6A", "\\x6B", "\\x6C", "\\x6D", "\\x6E", "\\x6F", "\\x70", "\\x71", "\\x72", "\\x73", "\\x74", "\\x75", "\\x76", "\\x77", "\\x78", "\\x79", "\\x7A"];
character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
var result = true;
@@ -33,6 +29,4 @@ for (index = 0; index < hex.length; index++) {
}
}
-if (result !== true) {
- throw new Test262Error('#1: english small alphabet');
-}
+assert.sameValue(result, true, 'The value of result is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js
index f310f22f4f..2585ed82c6 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js
@@ -9,37 +9,31 @@ es5id: 15.10.2.10_A4.1_T1
description: RegExp and tested string include uncode symbols
---*/
-//CHECK#0
var arr = /\u0000/.exec("\u0000");
if ((arr === null) || (arr[0] !== "\u0000")) {
throw new Test262Error('#0: var arr = /\\u0000/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
}
-//CHECK#1
var arr = /\u0001/.exec("\u0001");
if ((arr === null) || (arr[0] !== "\u0001")) {
throw new Test262Error('#1: var arr = /\\u0001/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
var arr = /\u000A/.exec("\u000A");
if ((arr === null) || (arr[0] !== "\u000A")) {
throw new Test262Error('#2: var arr = /\\u000A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0]));
}
-//CHECK#3
var arr = /\u00FF/.exec("\u00FF");
if ((arr === null) || (arr[0] !== "\u00FF")) {
throw new Test262Error('#3: var arr = /\\u00FF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0]));
}
-//CHECK#4
var arr = /\u0FFF/.exec("\u0FFF");
if ((arr === null) || (arr[0] !== "\u0FFF")) {
throw new Test262Error('#4: var arr = /\\u0FFF/.exec(\\u0FFF); arr[0] === "\\u0FFF". Actual. ' + (arr && arr[0]));
}
-//CHECK#5
var arr = /\uFFFF/.exec("\uFFFF");
if ((arr === null) || (arr[0] !== "\uFFFF")) {
throw new Test262Error('#5: var arr = /\\uFFFF/.exec(\\uFFFF); arr[0] === "\\uFFFF". Actual. ' + (arr && arr[0]));
diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js
index 156eafb0fe..8fc84a2d88 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js
@@ -11,7 +11,6 @@ description: >
alphabet
---*/
-//CHECK#41-5A
var hex = ["\\u0041", "\\u0042", "\\u0043", "\\u0044", "\\u0045", "\\u0046", "\\u0047", "\\u0048", "\\u0049", "\\u004A", "\\u004B", "\\u004C", "\\u004D", "\\u004E", "\\u004F", "\\u0050", "\\u0051", "\\u0052", "\\u0053", "\\u0054", "\\u0055", "\\u0056", "\\u0057", "\\u0058", "\\u0059", "\\u005A"];
var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
var result = true;
@@ -22,11 +21,8 @@ for (var index = 0; index < hex.length; index++) {
}
}
-if (result !== true) {
- throw new Test262Error('#1: ENGLISH CAPITAL ALPHABET');
-}
+assert.sameValue(result, true, 'The value of result is expected to be true');
-//CHECK#61-7A
hex = ["\\u0061", "\\u0062", "\\u0063", "\\u0064", "\\u0065", "\\u0066", "\\u0067", "\\u0068", "\\u0069", "\\u006A", "\\u006B", "\\u006C", "\\u006D", "\\u006E", "\\u006F", "\\u0070", "\\u0071", "\\u0072", "\\u0073", "\\u0074", "\\u0075", "\\u0076", "\\u0077", "\\u0078", "\\u0079", "\\u007A"];
character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
var result = true;
@@ -37,6 +33,4 @@ for (index = 0; index < hex.length; index++) {
}
}
-if (result !== true) {
- throw new Test262Error('#1: english small alphabet');
-}
+assert.sameValue(result, true, 'The value of result is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js
index efa6f82a8e..6d22d359c4 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js
@@ -11,7 +11,6 @@ description: >
alphabet in unicode notation
---*/
-//CHECK#0410-042F, 0401
var hex = ["\\u0410", "\\u0411", "\\u0412", "\\u0413", "\\u0414", "\\u0415", "\\u0416", "\\u0417", "\\u0418", "\\u0419", "\\u041A", "\\u041B", "\\u041C", "\\u041D", "\\u041E", "\\u041F", "\\u0420", "\\u0421", "\\u0422", "\\u0423", "\\u0424", "\\u0425", "\\u0426", "\\u0427", "\\u0428", "\\u0429", "\\u042A", "\\u042B", "\\u042C", "\\u042D", "\\u042E", "\\u042F", "\\u0401"];
var character = ["\u0410", "\u0411", "\u0412", "\u0413", "\u0414", "\u0415", "\u0416", "\u0417", "\u0418", "\u0419", "\u041A", "\u041B", "\u041C", "\u041D", "\u041E", "\u041F", "\u0420", "\u0421", "\u0422", "\u0423", "\u0424", "\u0425", "\u0426", "\u0427", "\u0428", "\u0429", "\u042A", "\u042B", "\u042C", "\u042D", "\u042E", "\u042F", "\u0401"];
var result = true;
@@ -22,11 +21,8 @@ for (var index = 0; index < hex.length; index++) {
}
}
-if (result !== true) {
- throw new Test262Error('#1: RUSSIAN CAPITAL ALPHABET');
-}
+assert.sameValue(result, true, 'The value of result is expected to be true');
-//CHECK#0430-044F, 0451
hex = ["\\u0430", "\\u0431", "\\u0432", "\\u0433", "\\u0434", "\\u0435", "\\u0436", "\\u0437", "\\u0438", "\\u0439", "\\u043A", "\\u043B", "\\u043C", "\\u043D", "\\u043E", "\\u043F", "\\u0440", "\\u0441", "\\u0442", "\\u0443", "\\u0444", "\\u0445", "\\u0446", "\\u0447", "\\u0448", "\\u0449", "\\u044A", "\\u044B", "\\u044C", "\\u044D", "\\u044E", "\\u044F", "\\u0451"];
character = ["\u0430", "\u0431", "\u0432", "\u0433", "\u0434", "\u0435", "\u0436", "\u0437", "\u0438", "\u0439", "\u043A", "\u043B", "\u043C", "\u043D", "\u043E", "\u043F", "\u0440", "\u0441", "\u0442", "\u0443", "\u0444", "\u0445", "\u0446", "\u0447", "\u0448", "\u0449", "\u044A", "\u044B", "\u044C", "\u044D", "\u044E", "\u044F", "\u0451"];
var result = true;
@@ -37,6 +33,4 @@ for (index = 0; index < hex.length; index++) {
}
}
-if (result !== true) {
- throw new Test262Error('#1: russian small alphabet');
-}
+assert.sameValue(result, true, 'The value of result is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js
index f51b878346..3c224c43e2 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js
@@ -9,7 +9,6 @@ es5id: 15.10.2.10_A5.1_T1
description: "Tested string is \"~`!@#$%^&*()-+={[}]|\\\\:;'<,>./?\" + '\"'"
---*/
-//CHECK#1
var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"';
for (var k = 0; k < non_ident.length; ++k) {
var arr = new RegExp("\\" + non_ident[k], "g").exec(non_ident);
diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T1.js b/test/built-ins/RegExp/S15.10.2.11_A1_T1.js
index 776365800a..03d3d517c2 100644
--- a/test/built-ins/RegExp/S15.10.2.11_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.11_A1_T1.js
@@ -9,13 +9,11 @@ description: >
consisting of a character (Unicodevalue0000)
---*/
-//CHECK#1
var arr = /\0/.exec("\u0000");
if ((arr === null) || (arr[0] !== "\u0000")) {
throw new Test262Error('#1: var arr = /\\0/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
var arr = (new RegExp("\\0")).exec("\u0000");
if ((arr === null) || (arr[0] !== "\u0000")) {
throw new Test262Error('#2: var arr = (new RegExp("\\0")).exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T4.js b/test/built-ins/RegExp/S15.10.2.11_A1_T4.js
index 48ff318e52..a5a4cd94b2 100644
--- a/test/built-ins/RegExp/S15.10.2.11_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.11_A1_T4.js
@@ -9,12 +9,10 @@ description: DecimalIntegerLiteral is not 0
var arr = /(A)\1/.exec("AA");
-//CHECK#1
if ((arr === null) || (arr[0] !== "AA")) {
throw new Test262Error('#1: var arr = (/(A)\\1/.exec("AA")); arr[0] === "AA". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
if ((arr === null) || (arr[1] !== "A")) {
throw new Test262Error('#2: var arr = (/(A)\\1/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1]));
}
diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T5.js b/test/built-ins/RegExp/S15.10.2.11_A1_T5.js
index 9cbdba5167..e1080bb2e3 100644
--- a/test/built-ins/RegExp/S15.10.2.11_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.11_A1_T5.js
@@ -9,12 +9,10 @@ description: DecimalIntegerLiteral is not 0
var arr = /\1(A)/.exec("AA");
-//CHECK#1
if ((arr === null) || (arr[0] !== "A")) {
throw new Test262Error('#1: var arr = (/\\1(A)/.exec("AA")); arr[0] === "A". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
if ((arr === null) || (arr[1] !== "A")) {
throw new Test262Error('#2: var arr = (/\\1(A)/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1]));
}
diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T6.js b/test/built-ins/RegExp/S15.10.2.11_A1_T6.js
index c936784aae..a5da4c4e12 100644
--- a/test/built-ins/RegExp/S15.10.2.11_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.11_A1_T6.js
@@ -9,17 +9,14 @@ description: DecimalIntegerLiteral is not 0
var arr = /(A)\1(B)\2/.exec("AABB");
-//CHECK#1
if ((arr === null) || (arr[0] !== "AABB")) {
throw new Test262Error('#1: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[0] === "AABB". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
if ((arr === null) || (arr[1] !== "A")) {
throw new Test262Error('#2: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[1] === "A". Actual. ' + (arr && arr[1]));
}
-//CHECK#3
if ((arr === null) || (arr[2] !== "B")) {
throw new Test262Error('#3: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[2] === "B". Actual. ' + (arr && arr[2]));
}
diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T7.js b/test/built-ins/RegExp/S15.10.2.11_A1_T7.js
index 7691d0232c..53f8313221 100644
--- a/test/built-ins/RegExp/S15.10.2.11_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.11_A1_T7.js
@@ -9,17 +9,14 @@ description: DecimalIntegerLiteral is not 0
var arr = /\1(A)(B)\2/.exec("ABB");
-//CHECK#1
if ((arr === null) || (arr[0] !== "ABB")) {
throw new Test262Error('#1: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[0] === "ABB". Actual. ' + (arr && arr[0]));
}
-//CHECK#2
if ((arr === null) || (arr[1] !== "A")) {
throw new Test262Error('#2: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[1] === "A". Actual. ' + (arr && arr[1]));
}
-//CHECK#3
if ((arr === null) || (arr[2] !== "B")) {
throw new Test262Error('#3: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[2] === "B". Actual. ' + (arr && arr[2]));
}
diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T8.js b/test/built-ins/RegExp/S15.10.2.11_A1_T8.js
index 7f99064dc7..51dbe6f5c6 100644
--- a/test/built-ins/RegExp/S15.10.2.11_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.11_A1_T8.js
@@ -9,14 +9,12 @@ description: DecimalIntegerLiteral is not 0
var arr = /((((((((((A))))))))))\1\2\3\4\5\6\7\8\9\10/.exec("AAAAAAAAAAA");
-//CHECK#1
if ((arr === null) || (arr[0] !== "AAAAAAAAAAA")) {
throw new Test262Error('#1: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[0] === "AAAAAAAAAAA". Actual. ' + (arr && arr[0]));
}
for (var i = 1; i <= 10; i++) {
- //CHECK#i
- if ((arr === null) || (arr[i] !== "A")) {
+ if ((arr === null) || (arr[i] !== "A")) {
throw new Test262Error('#2: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i]));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T9.js b/test/built-ins/RegExp/S15.10.2.11_A1_T9.js
index 3860bf11cf..036ea872ea 100644
--- a/test/built-ins/RegExp/S15.10.2.11_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.11_A1_T9.js
@@ -9,14 +9,12 @@ description: DecimalIntegerLiteral is not 0
var arr = /((((((((((A))))))))))\10\9\8\7\6\5\4\3\2\1/.exec("AAAAAAAAAAA");
-//CHECK#1
if ((arr === null) || (arr[0] !== "AAAAAAAAAAA")) {
throw new Test262Error('#1: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[0] === "AAAAAAAAAAA". Actual. ' + (arr && arr[0]));
}
for (var i = 1; i <= 10; i++) {
- //CHECK#i
- if ((arr === null) || (arr[i] !== "A")) {
+ if ((arr === null) || (arr[i] !== "A")) {
throw new Test262Error('#2: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i]));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T5.js b/test/built-ins/RegExp/S15.10.2.12_A3_T5.js
index 3c15b8daf6..0a567d3910 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A3_T5.js
@@ -9,13 +9,14 @@ es5id: 15.10.2.12_A3_T5
description: non-w
---*/
-//CHECK#1
var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"';
-if (/\w/.exec(non_w) !== null) {
- throw new Test262Error('#1: non-w');
-}
-//CHECK#2
+assert.sameValue(
+ /\w/.exec(non_w),
+ null,
+ '/w/.exec(""fnrtv~`!@#$%^&*()-+={[}]|:;\'<,>./? " + \'"\'") must return null'
+);
+
var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
var regexp_w = /\w/g;
var k = 0;
@@ -23,6 +24,4 @@ while (regexp_w.exec(non_W) !== null) {
k++;
}
-if (non_W.length !== k) {
- throw new Test262Error('#2: non-W');
-}
+assert.sameValue(non_W.length, k, 'The value of non_W.length is expected to equal the value of k');
diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T5.js b/test/built-ins/RegExp/S15.10.2.12_A4_T5.js
index 873a96b7a8..a5de48e50d 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A4_T5.js
@@ -9,7 +9,6 @@ es5id: 15.10.2.12_A4_T5
description: non-w
---*/
-//CHECK#1
var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"';
var regexp_W = /\W/g;
var k = 0;
@@ -17,12 +16,12 @@ while (regexp_W.exec(non_w) !== null) {
k++;
}
-if (non_w.length !== k) {
- throw new Test262Error('#1: non-w');
-}
+assert.sameValue(non_w.length, k, 'The value of non_w.length is expected to equal the value of k');
-//CHECK#2
var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
-if (/\W/.exec(non_W) !== null) {
- throw new Test262Error('#2: non-W');
-}
+
+assert.sameValue(
+ /\W/.exec(non_W),
+ null,
+ '/W/.exec(""_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"") must return null'
+);
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T1.js b/test/built-ins/RegExp/S15.10.2.13_A1_T1.js
index ac06addade..35428fbc7e 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T1.js
@@ -10,9 +10,5 @@ es5id: 15.10.2.13_A1_T1
description: Execute /[]a/.test("\0a\0a") and check results
---*/
-var __executed = /[]a/.test("\0a\0a");;
-
-//CHECK#1
- if (__executed) {
- throw new Test262Error('#1: /[]a/.test("\\0a\\0a") === false');
-}
+var __executed = /[]a/.test("\0a\0a");
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T10.js b/test/built-ins/RegExp/S15.10.2.13_A1_T10.js
index a64c228532..050a4fe420 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T10.js
@@ -16,24 +16,28 @@ var __expected = ["abc324234"];
__expected.index = 2;
__expected.input = "\n\n\abc324234\n";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T11.js b/test/built-ins/RegExp/S15.10.2.13_A1_T11.js
index 7309e495b0..43e7e43197 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T11.js
@@ -16,24 +16,28 @@ var __expected = ["abc"];
__expected.index = 0;
__expected.input = "abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /ab[.]?c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /ab[.]?c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /ab[.]?c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T12.js b/test/built-ins/RegExp/S15.10.2.13_A1_T12.js
index 002104e313..62f48c7056 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T12.js
@@ -16,24 +16,28 @@ var __expected = ["abc"];
__expected.index = 0;
__expected.input = "abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a[b]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a[b]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a[b]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T13.js b/test/built-ins/RegExp/S15.10.2.13_A1_T13.js
index ebfc4c975e..b143245a07 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T13.js
@@ -18,24 +18,28 @@ var __expected = ["def"];
__expected.index = 15;
__expected.input = "a1b b2c c3d def f4g";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T14.js b/test/built-ins/RegExp/S15.10.2.13_A1_T14.js
index deb0472442..28352cfe08 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T14.js
@@ -16,24 +16,28 @@ var __expected = ["*&$"];
__expected.index = 3;
__expected.input = "123*&$abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T15.js b/test/built-ins/RegExp/S15.10.2.13_A1_T15.js
index 4763e85559..dbd7fb5849 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T15.js
@@ -16,24 +16,28 @@ var __expected = ["1\nl"];
__expected.index = 4;
__expected.input = "line1\nline2";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T17.js b/test/built-ins/RegExp/S15.10.2.13_A1_T17.js
index 0bedac8111..484d7f6ce9 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T17.js
@@ -12,7 +12,4 @@ description: Execute /[]/.exec("a[b\n[]\tc]d") and check results
var __executed = /[]/.exec("a[b\n[]\tc]d");
-//CHECK#1
-if (__executed !== null) {
- throw new Test262Error('#1: /[]/.exec("a[b\\n[]\\tc]d") === false');
-}
+assert.sameValue(__executed, null, 'The value of __executed is expected to be null');
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T2.js b/test/built-ins/RegExp/S15.10.2.13_A1_T2.js
index e90b7b43ed..1fcea14ce9 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T2.js
@@ -10,9 +10,5 @@ es5id: 15.10.2.13_A1_T2
description: Execute /a[]/.test("\0a\0a") and check results
---*/
-var __executed = /a[]/.test("\0a\0a");;
-
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /a[]/.test("\\0a\\0a") === false');
-}
+var __executed = /a[]/.test("\0a\0a");
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T3.js b/test/built-ins/RegExp/S15.10.2.13_A1_T3.js
index 946921253b..8b707369ba 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T3.js
@@ -16,24 +16,28 @@ var __expected = ["qy"];
__expected.index = 2;
__expected.input = "qYqy ";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T4.js b/test/built-ins/RegExp/S15.10.2.13_A1_T4.js
index 8b2e3db2df..c0a624f4a7 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T4.js
@@ -16,24 +16,28 @@ var __expected = ["qy"];
__expected.index = 3;
__expected.input = "tqaqy ";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T5.js b/test/built-ins/RegExp/S15.10.2.13_A1_T5.js
index 87a8c8a386..5d908cca45 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T5.js
@@ -16,24 +16,28 @@ var __expected = ["qa"];
__expected.index = 1;
__expected.input = "tqa\t qy ";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T6.js b/test/built-ins/RegExp/S15.10.2.13_A1_T6.js
index 5654657ea4..8c2a6750b7 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T6.js
@@ -16,24 +16,28 @@ var __expected = ["abcde"];
__expected.index = 0;
__expected.input = "abcde";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /ab[ercst]de/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /ab[ercst]de/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /ab[ercst]de/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T7.js b/test/built-ins/RegExp/S15.10.2.13_A1_T7.js
index a371351e0d..09563764ec 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T7.js
@@ -12,7 +12,4 @@ description: Execute /ab[erst]de/.test("abcde") and check results
var __executed = /ab[erst]de/.test("abcde");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /ab[erst]de/.test("abcde") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T8.js b/test/built-ins/RegExp/S15.10.2.13_A1_T8.js
index 863e630036..b1bbb668b7 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T8.js
@@ -16,24 +16,28 @@ var __expected = ["defgh"];
__expected.index = 3;
__expected.input = "abcdefghijkl";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T9.js b/test/built-ins/RegExp/S15.10.2.13_A1_T9.js
index a01e6ec408..0ac65487c4 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T9.js
@@ -16,24 +16,28 @@ var __expected = ["6de"];
__expected.index = 3;
__expected.input = "abc6defghijkl";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T1.js b/test/built-ins/RegExp/S15.10.2.13_A2_T1.js
index b3e3be6dc4..6609a5f572 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T1.js
@@ -16,24 +16,28 @@ var __expected = ["\na"];
__expected.index = 1;
__expected.input = "a\naba";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^]a/m.exec("a\\naba"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^]a/m.exec("a\\naba"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^]a/m.exec("a\\naba"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T2.js b/test/built-ins/RegExp/S15.10.2.13_A2_T2.js
index 27ccca4435..efe75662d7 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T2.js
@@ -16,24 +16,28 @@ var __expected = ["a\t"];
__expected.index = 3;
__expected.input = " a\t\n";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a[^]/.exec(" a\\t\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a[^]/.exec(" a\\t\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a[^]/.exec(" a\\t\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T3.js b/test/built-ins/RegExp/S15.10.2.13_A2_T3.js
index 5ef30235b8..4c0bca3ab3 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T3.js
@@ -16,24 +16,28 @@ var __expected = ["aY "];
__expected.index = 9;
__expected.input = "ab an az aY n";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T4.js b/test/built-ins/RegExp/S15.10.2.13_A2_T4.js
index d3132a07c3..06eb91b6b2 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T4.js
@@ -16,24 +16,28 @@ var __expected = ["easy"];
__expected.index = 0;
__expected.input = "easy\bto\u0008ride";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T5.js b/test/built-ins/RegExp/S15.10.2.13_A2_T5.js
index 0f0c44c80f..4b6371c256 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T5.js
@@ -16,24 +16,28 @@ var __expected = ["abc"];
__expected.index = 0;
__expected.input = "abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a[^1-9]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a[^1-9]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a[^1-9]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T6.js b/test/built-ins/RegExp/S15.10.2.13_A2_T6.js
index 0a51307f7f..8690dc764c 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T6.js
@@ -12,7 +12,4 @@ description: Execute /a[^b]c/.test("abc") and check results
var __executed = /a[^b]c/.test("abc");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /a[^b]c/.test("abc") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T7.js b/test/built-ins/RegExp/S15.10.2.13_A2_T7.js
index dafab50497..46cd51e4e5 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T7.js
@@ -16,24 +16,28 @@ var __expected = ["%&*@"];
__expected.index = 9;
__expected.input = "abc#$%def%&*@ghi";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T8.js b/test/built-ins/RegExp/S15.10.2.13_A2_T8.js
index 2a7e64c26f..4cc39bfbdd 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T8.js
@@ -16,24 +16,28 @@ var __expected = ["a"];
__expected.index = 0;
__expected.input = "abc#$%def%&*@ghi";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T1.js b/test/built-ins/RegExp/S15.10.2.13_A3_T1.js
index d5425ff1a2..8659c4a657 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A3_T1.js
@@ -13,24 +13,28 @@ var __expected = ["c\bd"];
__expected.index = 2;
__expected.input = "abc\bdef";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T2.js b/test/built-ins/RegExp/S15.10.2.13_A3_T2.js
index b3ea3c1ab6..3f0dc92f4c 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A3_T2.js
@@ -13,24 +13,28 @@ var __expected = ["c\b\b\bd"];
__expected.index = 2;
__expected.input = "abc\b\b\bdef";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T3.js b/test/built-ins/RegExp/S15.10.2.13_A3_T3.js
index 9dd0ad0d0a..dabe535e93 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A3_T3.js
@@ -13,24 +13,28 @@ var __expected = ["abc"];
__expected.index = 0;
__expected.input = "abc\bdef";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T4.js b/test/built-ins/RegExp/S15.10.2.13_A3_T4.js
index c1ca56e350..b516150971 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A3_T4.js
@@ -13,24 +13,28 @@ var __expected = ["abcdef"];
__expected.index = 0;
__expected.input = "abcdef";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T1.js b/test/built-ins/RegExp/S15.10.2.15_A1_T1.js
index 0f408e6134..0954d90870 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T1.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-ac-e]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T10.js b/test/built-ins/RegExp/S15.10.2.15_A1_T10.js
index 108bf0a514..7f1596da23 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T10.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\10b-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T11.js b/test/built-ins/RegExp/S15.10.2.15_A1_T11.js
index dcdd702b77..24073339fd 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T11.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\bd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T12.js b/test/built-ins/RegExp/S15.10.2.15_A1_T12.js
index 8a0fcedfa6..11a43d706c 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T12.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Bd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T13.js b/test/built-ins/RegExp/S15.10.2.15_A1_T13.js
index b4e15af2a0..0f4c1f51b9 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T13.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\td-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T14.js b/test/built-ins/RegExp/S15.10.2.15_A1_T14.js
index ff000c2269..9ec87dd700 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T14.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\nd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T15.js b/test/built-ins/RegExp/S15.10.2.15_A1_T15.js
index 52238e34f5..80aace2ac9 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T15.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\vd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T16.js b/test/built-ins/RegExp/S15.10.2.15_A1_T16.js
index 2581c4edc1..ac705b4c81 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T16.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T16.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\fd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T17.js b/test/built-ins/RegExp/S15.10.2.15_A1_T17.js
index 467943acba..ac1a79b0cc 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T17.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\rd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T18.js b/test/built-ins/RegExp/S15.10.2.15_A1_T18.js
index ae2e9059fc..ec18e35798 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T18.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T18.js
@@ -16,11 +16,14 @@ description: >
throwing the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\c0001d-G]").exec("1")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T19.js b/test/built-ins/RegExp/S15.10.2.15_A1_T19.js
index 2092ce0116..0aa363bdc4 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T19.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T19.js
@@ -16,11 +16,14 @@ description: >
throwing the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\x0061d-G]").exec("1")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T2.js b/test/built-ins/RegExp/S15.10.2.15_A1_T2.js
index 4dc1b80406..abf988680b 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T2.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[a-dc-b]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T20.js b/test/built-ins/RegExp/S15.10.2.15_A1_T20.js
index 24a2ccb1bf..dff458de58 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T20.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T20.js
@@ -16,11 +16,14 @@ description: >
throwing the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\u0061d-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T21.js b/test/built-ins/RegExp/S15.10.2.15_A1_T21.js
index eeb08b581e..f349576e09 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T21.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T21.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\ad-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T22.js b/test/built-ins/RegExp/S15.10.2.15_A1_T22.js
index ed7dcec991..fc7aa31b6b 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T22.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T22.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[c-eb-a]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T23.js b/test/built-ins/RegExp/S15.10.2.15_A1_T23.js
index 20c1b33541..125724a6d0 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T23.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T23.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\d]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T24.js b/test/built-ins/RegExp/S15.10.2.15_A1_T24.js
index 281fffa72f..1edb3852db 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T24.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T24.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\D]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T25.js b/test/built-ins/RegExp/S15.10.2.15_A1_T25.js
index c84e0aec5f..d59d0280f7 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T25.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T25.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\s]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T26.js b/test/built-ins/RegExp/S15.10.2.15_A1_T26.js
index ca5fca68b1..c2c0bacb1a 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T26.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T26.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\S]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T27.js b/test/built-ins/RegExp/S15.10.2.15_A1_T27.js
index 2b44ab4d09..d9db505d8f 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T27.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T27.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\w]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T28.js b/test/built-ins/RegExp/S15.10.2.15_A1_T28.js
index 2b1eb12413..61e07fc9b5 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T28.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T28.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\W]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T29.js b/test/built-ins/RegExp/S15.10.2.15_A1_T29.js
index 107112b964..7754840f7d 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T29.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T29.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\0]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T3.js b/test/built-ins/RegExp/S15.10.2.15_A1_T3.js
index 157c381ab7..aa8480a46e 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T3.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\db-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T30.js b/test/built-ins/RegExp/S15.10.2.15_A1_T30.js
index 950190c1a0..8d82d40d9c 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T30.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T30.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\10]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T31.js b/test/built-ins/RegExp/S15.10.2.15_A1_T31.js
index e0d9d509a7..e0dfa82066 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T31.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T31.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\b]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T32.js b/test/built-ins/RegExp/S15.10.2.15_A1_T32.js
index 17014c50d3..3cc36c2f91 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T32.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T32.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\B]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T33.js b/test/built-ins/RegExp/S15.10.2.15_A1_T33.js
index 27fa1e2545..4fb9e4ddb7 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T33.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T33.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\t]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T34.js b/test/built-ins/RegExp/S15.10.2.15_A1_T34.js
index bb178a075e..f26f617a87 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T34.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T34.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\n]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T35.js b/test/built-ins/RegExp/S15.10.2.15_A1_T35.js
index fd5e0b8e7a..3cba1f0b61 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T35.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T35.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\v]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T36.js b/test/built-ins/RegExp/S15.10.2.15_A1_T36.js
index 2bab335698..7cc48e928e 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T36.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T36.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\f]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T37.js b/test/built-ins/RegExp/S15.10.2.15_A1_T37.js
index 783aca232b..3707a99292 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T37.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T37.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\r]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T38.js b/test/built-ins/RegExp/S15.10.2.15_A1_T38.js
index 5b184d0015..bb3d5f8fb9 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T38.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T38.js
@@ -16,11 +16,14 @@ description: >
throwing the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\c0001]").exec("1")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T39.js b/test/built-ins/RegExp/S15.10.2.15_A1_T39.js
index ccd4858b27..d9c5ad3073 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T39.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T39.js
@@ -16,11 +16,14 @@ description: >
throwing the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\x0061]").exec("1")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T4.js b/test/built-ins/RegExp/S15.10.2.15_A1_T4.js
index 22d3ce2cef..8325a04d56 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T4.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Db-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T40.js b/test/built-ins/RegExp/S15.10.2.15_A1_T40.js
index feb2a0302c..b4ec442b59 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T40.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T40.js
@@ -16,11 +16,14 @@ description: >
throwing the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\u0061]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T41.js b/test/built-ins/RegExp/S15.10.2.15_A1_T41.js
index f591447c34..e6e070054d 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T41.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T41.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\a]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T5.js b/test/built-ins/RegExp/S15.10.2.15_A1_T5.js
index 2d0733b670..872dc04eea 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T5.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\sb-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T6.js b/test/built-ins/RegExp/S15.10.2.15_A1_T6.js
index 112854d4a5..3c68c14b67 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T6.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Sb-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T7.js b/test/built-ins/RegExp/S15.10.2.15_A1_T7.js
index b6679943e6..90f96e1c1b 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T7.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\wb-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T8.js b/test/built-ins/RegExp/S15.10.2.15_A1_T8.js
index f1c228a56a..28307c95bc 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T8.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Wb-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T9.js b/test/built-ins/RegExp/S15.10.2.15_A1_T9.js
index 1fd3b1a5a3..0d59035aff 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T9.js
@@ -16,11 +16,14 @@ description: >
the correct exception
---*/
-//CHECK#1
try {
throw new Test262Error('#1.1: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\0b-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
- throw new Test262Error('#1.2: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
- }
+ assert.sameValue(
+ e instanceof SyntaxError,
+ true,
+ 'The result of evaluating (e instanceof SyntaxError) is expected to be true'
+ );
}
+
+// TODO: Convert to assert.throws() format.
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T1.js b/test/built-ins/RegExp/S15.10.2.3_A1_T1.js
index dad4766a0d..12ea5388c9 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T1.js
@@ -16,24 +16,28 @@ var __expected = ["a"];
__expected.index = 0;
__expected.input = "abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a|ab/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a|ab/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a|ab/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a|ab/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T10.js b/test/built-ins/RegExp/S15.10.2.3_A1_T10.js
index e6f9800ad8..b987d4d68a 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T10.js
@@ -16,24 +16,28 @@ var __expected = ["eF"];
__expected.index = 3;
__expected.input = "AEKeFCDab";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T11.js b/test/built-ins/RegExp/S15.10.2.3_A1_T11.js
index e7e63932d0..704f86729d 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T11.js
@@ -16,24 +16,28 @@ var __expected = ["11111"];
__expected.index = 0;
__expected.input = "1111111111111111";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /11111|111/.exec("1111111111111111"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /11111|111/.exec("1111111111111111"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /11111|111/.exec("1111111111111111"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /11111|111/.exec("1111111111111111"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T12.js b/test/built-ins/RegExp/S15.10.2.3_A1_T12.js
index d62345c9ac..1086912d0e 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T12.js
@@ -16,24 +16,28 @@ var __expected = ["abc"];
__expected.index = 0;
__expected.input = "abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /xyz|.../.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /xyz|.../.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /xyz|.../.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /xyz|.../.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T13.js b/test/built-ins/RegExp/S15.10.2.3_A1_T13.js
index 265b05161b..f4e5f7dfec 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T13.js
@@ -16,24 +16,28 @@ var __expected = ["abc","a"];
__expected.index = 0;
__expected.input = "abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(.)..|abc/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(.)..|abc/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(.)..|abc/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(.)..|abc/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T14.js b/test/built-ins/RegExp/S15.10.2.3_A1_T14.js
index 1866f69f44..f43a9e7040 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T14.js
@@ -16,24 +16,28 @@ var __expected = ["color: grey","e"];
__expected.index = 0;
__expected.input = "color: grey";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T15.js b/test/built-ins/RegExp/S15.10.2.3_A1_T15.js
index 5a235efcc3..b3c2fdd25b 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T15.js
@@ -18,24 +18,28 @@ var __expected = ["Bob",undefined,"Bob", undefined, undefined];
__expected.index = 3;
__expected.input = "Hi Bob";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T16.js b/test/built-ins/RegExp/S15.10.2.3_A1_T16.js
index f75e6873cf..90a1d66229 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T16.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T16.js
@@ -16,24 +16,28 @@ var __expected = ["",""];
__expected.index = 0;
__expected.input = "";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /()|/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /()|/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /()|/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /()|/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T17.js b/test/built-ins/RegExp/S15.10.2.3_A1_T17.js
index 7ec57ac29a..24a874dc40 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T17.js
@@ -16,24 +16,28 @@ var __expected = ["",undefined];
__expected.index = 0;
__expected.input = "";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /|()/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /|()/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /|()/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /|()/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T2.js b/test/built-ins/RegExp/S15.10.2.3_A1_T2.js
index 1d6e043a19..4ba331770d 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T2.js
@@ -16,24 +16,28 @@ var __expected = ["abc", "a", "a", undefined, "bc", undefined, "bc"];
__expected.index = 0;
__expected.input = "abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T3.js b/test/built-ins/RegExp/S15.10.2.3_A1_T3.js
index f74d9cbb17..6b39758b16 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T3.js
@@ -18,24 +18,28 @@ var __expected = ["cour"];
__expected.index = 13;
__expected.input = "2, 12 and of course repeat 12";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T4.js b/test/built-ins/RegExp/S15.10.2.3_A1_T4.js
index 385a68a474..4a6432900a 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T4.js
@@ -18,24 +18,28 @@ var __expected = ["234"];
__expected.index = 10;
__expected.input = "2, 12 and 234 AND of course repeat 12";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T5.js b/test/built-ins/RegExp/S15.10.2.3_A1_T5.js
index 1b5a8c0921..8d14a92d6f 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T5.js
@@ -14,7 +14,4 @@ description: >
var __executed = /\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /\\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T6.js b/test/built-ins/RegExp/S15.10.2.3_A1_T6.js
index 262248a3ae..49f3f01234 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T6.js
@@ -16,24 +16,28 @@ var __expected = ["CD"];
__expected.index = 4;
__expected.input = "AEKFCD";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T7.js b/test/built-ins/RegExp/S15.10.2.3_A1_T7.js
index e9f92333b9..d3e7cf4abf 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T7.js
@@ -12,7 +12,4 @@ description: Execute /ab|cd|ef/.test("AEKFCD") and check results
var __executed = /ab|cd|ef/.test("AEKFCD");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /ab|cd|ef/.test("AEKFCD") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T8.js b/test/built-ins/RegExp/S15.10.2.3_A1_T8.js
index 7c66cb409d..7ed4226474 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T8.js
@@ -16,24 +16,28 @@ var __expected = ["CD"];
__expected.index = 4;
__expected.input = "AEKFCD";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T9.js b/test/built-ins/RegExp/S15.10.2.3_A1_T9.js
index 3247ac6907..74692a0b86 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T9.js
@@ -16,24 +16,28 @@ var __expected = ["CDab"];
__expected.index = 4;
__expected.input = "AEKFCDab";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T1.js b/test/built-ins/RegExp/S15.10.2.5_A1_T1.js
index 1e61c23652..71a1093a51 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T1.js
@@ -15,24 +15,28 @@ var __expected = ["abcde"];
__expected.index = 0;
__expected.input = "abcdefghi";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T2.js b/test/built-ins/RegExp/S15.10.2.5_A1_T2.js
index 3bde0c1d30..173f67722c 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T2.js
@@ -15,24 +15,28 @@ var __expected = ["abc"];
__expected.index = 0;
__expected.input = "abcdefghi";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T3.js b/test/built-ins/RegExp/S15.10.2.5_A1_T3.js
index cfacee10cb..052b5b73e3 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T3.js
@@ -15,24 +15,28 @@ var __expected = ["aaba", "ba"];
__expected.index = 0;
__expected.input = "aabaac";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T4.js b/test/built-ins/RegExp/S15.10.2.5_A1_T4.js
index ac05549495..705a3caebf 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T4.js
@@ -15,24 +15,28 @@ var __expected = ["zaacbbbcac", "z", "ac", "a", undefined, "c"];
__expected.index = 0;
__expected.input = "zaacbbbcac";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T5.js b/test/built-ins/RegExp/S15.10.2.5_A1_T5.js
index fe9b6dd325..6b655b8442 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T5.js
@@ -15,24 +15,28 @@ var __expected = ["b", ""];
__expected.index = 0;
__expected.input = "baaaac";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(a*)b\\1+/.exec("baaaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T1.js b/test/built-ins/RegExp/S15.10.2.6_A1_T1.js
index 5633781e59..4c4d2b4b97 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T1.js
@@ -11,7 +11,4 @@ description: Execute /s$/.test("pairs\nmakes\tdouble") and check results
var __executed = /s$/.test("pairs\nmakes\tdouble");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /s$/.test("pairs\\nmakes\\tdouble") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T2.js b/test/built-ins/RegExp/S15.10.2.6_A1_T2.js
index 72d7739ab1..821445268f 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T2.js
@@ -15,24 +15,28 @@ var __expected = ["e"];
__expected.index = 17;
__expected.input = "pairs\nmakes\tdouble";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T3.js b/test/built-ins/RegExp/S15.10.2.6_A1_T3.js
index e5b2f30ac0..5b09530575 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T3.js
@@ -15,24 +15,28 @@ var __expected = ["s"];
__expected.index = 4;
__expected.input = "pairs\nmakes\tdouble";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T4.js b/test/built-ins/RegExp/S15.10.2.6_A1_T4.js
index 0086678caf..affdf48240 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T4.js
@@ -15,24 +15,28 @@ var __expected = ["s"];
__expected.index = 4;
__expected.input = "pairs\nmakes\tdouble";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T5.js b/test/built-ins/RegExp/S15.10.2.6_A1_T5.js
index 8b0209692f..3aec5ecb1b 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T5.js
@@ -17,24 +17,28 @@ var __expected = ["es"];
__expected.index = 17;
__expected.input = "pairs\nmakes\tdoubles";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T1.js b/test/built-ins/RegExp/S15.10.2.6_A2_T1.js
index 5943e67060..7c7983b860 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T1.js
@@ -11,7 +11,4 @@ description: Execute /^m/.test("pairs\nmakes\tdouble") and check results
var __executed = /^m/.test("pairs\nmakes\tdouble");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /^m/.test("pairs\\nmakes\\tdouble") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T10.js b/test/built-ins/RegExp/S15.10.2.6_A2_T10.js
index ebffc480a6..f13ebfec4f 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T10.js
@@ -15,24 +15,28 @@ var __expected = ["123"];
__expected.index = 4;
__expected.input = "abc\n123xyz";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T2.js b/test/built-ins/RegExp/S15.10.2.6_A2_T2.js
index e76f8ea58c..246d35824d 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T2.js
@@ -15,24 +15,28 @@ var __expected = ["m"];
__expected.index = 6;
__expected.input = "pairs\nmakes\tdouble";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T3.js b/test/built-ins/RegExp/S15.10.2.6_A2_T3.js
index 22fb26e3b4..0dde75c65d 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T3.js
@@ -17,24 +17,28 @@ var __expected = ["pa"];
__expected.index = 0;
__expected.input = "pairs\nmakes\tdouble\npesos";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T4.js b/test/built-ins/RegExp/S15.10.2.6_A2_T4.js
index e36ec8d305..5e79d9b09f 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T4.js
@@ -17,24 +17,28 @@ var __expected = ["pe"];
__expected.index = 19;
__expected.input = "pairs\nmakes\tdouble\npesos";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T5.js b/test/built-ins/RegExp/S15.10.2.6_A2_T5.js
index 1609fb8736..575d4724c1 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T5.js
@@ -17,24 +17,28 @@ var __expected = ["m"];
__expected.index = 6;
__expected.input = "pairs\nmakes\tdouble\npesos";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T6.js b/test/built-ins/RegExp/S15.10.2.6_A2_T6.js
index 0510be4263..bcd47d7a4f 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T6.js
@@ -15,24 +15,28 @@ var __expected = ["ab"];
__expected.index = 0;
__expected.input = "abcde";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^ab/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^ab/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^ab/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^ab/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T7.js b/test/built-ins/RegExp/S15.10.2.6_A2_T7.js
index 08f556fe98..b73e004706 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T7.js
@@ -11,7 +11,4 @@ description: Execute /^..^e/.test("ab\ncde") and check results
var __executed = /^..^e/.test("ab\ncde");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /^..^e/.test("ab\\ncde") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T8.js b/test/built-ins/RegExp/S15.10.2.6_A2_T8.js
index 27593d8691..114bf23135 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T8.js
@@ -11,7 +11,4 @@ description: Execute /^xxx/.test("yyyyy") and check results
var __executed = /^xxx/.test("yyyyy");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /^xxx/.test("yyyyy") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T9.js b/test/built-ins/RegExp/S15.10.2.6_A2_T9.js
index 8fed2f9141..b8740e9545 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T9.js
@@ -15,24 +15,28 @@ var __expected = ["^^^"];
__expected.index = 0;
__expected.input = "^^^x";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^\\^+/.exec("^^^x"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^\\^+/.exec("^^^x"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^\\^+/.exec("^^^x"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^\\^+/.exec("^^^x"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T1.js b/test/built-ins/RegExp/S15.10.2.6_A3_T1.js
index 2f7b6bcc39..3352bd8e07 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T1.js
@@ -17,24 +17,28 @@ var __expected = ["p"];
__expected.index = 0;
__expected.input = "pilot\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T10.js b/test/built-ins/RegExp/S15.10.2.6_A3_T10.js
index a6e9fbf089..390030dbff 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T10.js
@@ -17,24 +17,28 @@ var __expected = ["robot"];
__expected.index = 13;
__expected.input = "pilot\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T11.js b/test/built-ins/RegExp/S15.10.2.6_A3_T11.js
index 798cbfc074..eeaae7cef5 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T11.js
@@ -17,24 +17,28 @@ var __expected = ["pilot"];
__expected.index = 0;
__expected.input = "pilot\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T12.js b/test/built-ins/RegExp/S15.10.2.6_A3_T12.js
index 08c4c1392a..9038f27747 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T12.js
@@ -17,24 +17,28 @@ var __expected = ["op"];
__expected.index = 19;
__expected.input = "pilot\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T13.js b/test/built-ins/RegExp/S15.10.2.6_A3_T13.js
index 7f5acff6fc..0560c641b0 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T13.js
@@ -13,7 +13,4 @@ description: >
var __executed = /op\b/.test("pilot\nsoviet robot\topenoffice");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /op\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T14.js b/test/built-ins/RegExp/S15.10.2.6_A3_T14.js
index e1fa64ac4e..ac665eb23a 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T14.js
@@ -17,24 +17,28 @@ var __expected = ["e"];
__expected.index = 28;
__expected.input = "pilot\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T15.js b/test/built-ins/RegExp/S15.10.2.6_A3_T15.js
index 79bd501810..17c56a38b7 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T15.js
@@ -13,7 +13,4 @@ description: >
var __executed = /\be/.test("pilot\nsoviet robot\topenoffic\u0065");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /\\be/.test("pilot\\nsoviet robot\\topenoffic\\u0065") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T2.js b/test/built-ins/RegExp/S15.10.2.6_A3_T2.js
index bbcfe454e0..61ee7ef108 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T2.js
@@ -17,24 +17,28 @@ var __expected = ["ot"];
__expected.index = 3;
__expected.input = "pilot\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T3.js b/test/built-ins/RegExp/S15.10.2.6_A3_T3.js
index 6b113ec35d..a7ea91830c 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T3.js
@@ -13,7 +13,4 @@ description: >
var __executed = /\bot/.test("pilot\nsoviet robot\topenoffice");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /\\bot/.test("pilot\\nsoviet robot\\topenoffice") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T4.js b/test/built-ins/RegExp/S15.10.2.6_A3_T4.js
index da3bee857a..ae69c4cd3f 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T4.js
@@ -17,24 +17,28 @@ var __expected = ["so"];
__expected.index = 6;
__expected.input = "pilot\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T5.js b/test/built-ins/RegExp/S15.10.2.6_A3_T5.js
index 69f4d15669..d84a054e10 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T5.js
@@ -13,7 +13,4 @@ description: >
var __executed = /so\b/.test("pilot\nsoviet robot\topenoffice");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /so\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T6.js b/test/built-ins/RegExp/S15.10.2.6_A3_T6.js
index ec8b695b2e..ac01ac96fe 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T6.js
@@ -17,24 +17,28 @@ var __expected = ["Ot"];
__expected.index = 3;
__expected.input = "pilOt\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T7.js b/test/built-ins/RegExp/S15.10.2.6_A3_T7.js
index 7d6ac94131..d114bfb731 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T7.js
@@ -17,24 +17,28 @@ var __expected = ["et"];
__expected.index = 10;
__expected.input = "pilOt\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T8.js b/test/built-ins/RegExp/S15.10.2.6_A3_T8.js
index 1d851e657c..91f7e8b1f2 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T8.js
@@ -17,24 +17,28 @@ var __expected = ["ro"];
__expected.index = 13;
__expected.input = "pilot\nsoviet robot\topenoffice";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T9.js b/test/built-ins/RegExp/S15.10.2.6_A3_T9.js
index 218b671422..b83c92d6bd 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T9.js
@@ -13,7 +13,4 @@ description: >
var __executed = /r\b/.test("pilot\nsoviet robot\topenoffice");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /r\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T1.js b/test/built-ins/RegExp/S15.10.2.6_A4_T1.js
index 7fdb00435d..b82911c6e6 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T1.js
@@ -17,24 +17,28 @@ var __expected = ["evil"];
__expected.index = 1;
__expected.input = "devils arise\tfor\nevil";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T2.js b/test/built-ins/RegExp/S15.10.2.6_A4_T2.js
index d0ae1ccb00..476362143e 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T2.js
@@ -17,24 +17,28 @@ var __expected = ["re"];
__expected.index = 17;
__expected.input = "devils arise\tfor\nrevil";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T3.js b/test/built-ins/RegExp/S15.10.2.6_A4_T3.js
index 0400ee8b49..8f17507680 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T3.js
@@ -15,24 +15,28 @@ var __expected = ["O"];
__expected.index = 14;
__expected.input = "devils arise\tfOr\nrevil";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T4.js b/test/built-ins/RegExp/S15.10.2.6_A4_T4.js
index 5e35aa4b84..537721c50c 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T4.js
@@ -15,24 +15,28 @@ var __expected = ["e"];
__expected.index = 1;
__expected.input = "devils arise\tfor\nrevil";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T5.js b/test/built-ins/RegExp/S15.10.2.6_A4_T5.js
index 6d56ac2e74..20c58334ab 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T5.js
@@ -15,24 +15,28 @@ var __expected = ["d"];
__expected.index = 0;
__expected.input = "devils arise\tfor\nrevil";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T6.js b/test/built-ins/RegExp/S15.10.2.6_A4_T6.js
index 829be0a35c..30bd0f1931 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T6.js
@@ -15,24 +15,28 @@ var __expected = ["e"];
__expected.index = 1;
__expected.input = "devils arise\tfor\nrevil";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T7.js b/test/built-ins/RegExp/S15.10.2.6_A4_T7.js
index ab02b28368..caf49c42a0 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T7.js
@@ -17,24 +17,28 @@ var __expected = ["il a"];
__expected.index = 3;
__expected.input = "devil arise\tforzzx\nevils";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T8.js b/test/built-ins/RegExp/S15.10.2.6_A4_T8.js
index c33658571f..41c37a29e9 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T8.js
@@ -17,24 +17,28 @@ var __expected = ["orzz"];
__expected.index = 13;
__expected.input = "devil arise\tforzzx\nevils";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A5_T1.js b/test/built-ins/RegExp/S15.10.2.6_A5_T1.js
index 2d244f51d8..004e2b7324 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A5_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A5_T1.js
@@ -15,24 +15,28 @@ var __expected = ["robot"];
__expected.index = 0;
__expected.input = "robot";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A5_T2.js b/test/built-ins/RegExp/S15.10.2.6_A5_T2.js
index e462192c9c..acdf8af74f 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A5_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A5_T2.js
@@ -17,24 +17,28 @@ var __expected = ["bot"];
__expected.index = 2;
__expected.input = "robot wall-e";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T1.js b/test/built-ins/RegExp/S15.10.2.6_A6_T1.js
index 79947b5c0b..151a0a1881 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A6_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A6_T1.js
@@ -15,24 +15,28 @@ var __expected = ["Hello World"];
__expected.index = 0;
__expected.input = "Hello World";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^.*?$/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^.*?$/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^.*?$/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^.*?$/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T2.js b/test/built-ins/RegExp/S15.10.2.6_A6_T2.js
index 50666cafcb..537d0881c5 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A6_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A6_T2.js
@@ -13,24 +13,28 @@ var __expected = [""];
__expected.index = 0;
__expected.input = "Hello World";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^.*?/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^.*?/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^.*?/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^.*?/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T3.js b/test/built-ins/RegExp/S15.10.2.6_A6_T3.js
index a304bcdf75..e73fc54317 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A6_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A6_T3.js
@@ -13,24 +13,28 @@ var __expected = ["Hello:", ":"];
__expected.index = 0;
__expected.input = "Hello: World";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T4.js b/test/built-ins/RegExp/S15.10.2.6_A6_T4.js
index c2389ba4c9..19bd47575f 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A6_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A6_T4.js
@@ -13,24 +13,28 @@ var __expected = ["Hello: World", ""];
__expected.index = 0;
__expected.input = "Hello: World";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^.*(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T1.js b/test/built-ins/RegExp/S15.10.2.7_A1_T1.js
index 7e04e62b79..29eafbfbae 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T1.js
@@ -15,24 +15,28 @@ var __expected = ["42"];
__expected.index = 14;
__expected.input = "the answer is 42";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T10.js b/test/built-ins/RegExp/S15.10.2.7_A1_T10.js
index 2d9e8cb39a..4be43d416e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T10.js
@@ -15,24 +15,28 @@ var __expected = ["bbbbc"];
__expected.index = 3;
__expected.input = "aaabbbbcccddeeeefffff";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T11.js b/test/built-ins/RegExp/S15.10.2.7_A1_T11.js
index 6a60b1b7c0..7faeb090cb 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T11.js
@@ -15,24 +15,28 @@ var __expected = ["bc"];
__expected.index = 6;
__expected.input = "aaabbbbcccddeeeefffff";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T12.js b/test/built-ins/RegExp/S15.10.2.7_A1_T12.js
index 403396e1cb..bcc2c5ef84 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T12.js
@@ -15,24 +15,28 @@ var __expected = ["weirwerdf"];
__expected.index = 0;
__expected.input = "weirwerdf";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /.{0,93}/.exec("weirwerdf"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /.{0,93}/.exec("weirwerdf"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /.{0,93}/.exec("weirwerdf"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /.{0,93}/.exec("weirwerdf"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T2.js b/test/built-ins/RegExp/S15.10.2.7_A1_T2.js
index f68f18b941..6fa3e50a46 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T2.js
@@ -11,7 +11,4 @@ description: Execute /\d{2,4}/.test("the 7 movie") and check results
var __executed = /\d{2,4}/.test("the 7 movie");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /\\d{2,4}/.test("the 7 movie") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T3.js b/test/built-ins/RegExp/S15.10.2.7_A1_T3.js
index 3ea78a7d51..e7ca562708 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T3.js
@@ -17,24 +17,28 @@ var __expected = ["2000"];
__expected.index = 4;
__expected.input = "the 20000 Leagues Under the Sea book";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T4.js b/test/built-ins/RegExp/S15.10.2.7_A1_T4.js
index 6da8d0cbe7..149a446a05 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T4.js
@@ -15,24 +15,28 @@ var __expected = ["451"];
__expected.index = 15;
__expected.input = "the Fahrenheit 451 book";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T5.js b/test/built-ins/RegExp/S15.10.2.7_A1_T5.js
index c7a2ae99c9..a2d2901d6b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T5.js
@@ -15,24 +15,28 @@ var __expected = ["1984"];
__expected.index = 4;
__expected.input = "the 1984 novel";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T6.js b/test/built-ins/RegExp/S15.10.2.7_A1_T6.js
index f79f475c02..0c34a90d79 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T6.js
@@ -15,24 +15,28 @@ var __expected = ["011"];
__expected.index = 2;
__expected.input = "0a011b";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T7.js b/test/built-ins/RegExp/S15.10.2.7_A1_T7.js
index 232afdf549..392b0b6c9d 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T7.js
@@ -15,24 +15,28 @@ var __expected = ["0112"];
__expected.index = 2;
__expected.input = "0a01122b";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T8.js b/test/built-ins/RegExp/S15.10.2.7_A1_T8.js
index e124a1a9d0..8d7eb228ca 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T8.js
@@ -15,24 +15,28 @@ var __expected = ["bbbc"];
__expected.index = 4;
__expected.input = "aaabbbbcccddeeeefffff";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T9.js b/test/built-ins/RegExp/S15.10.2.7_A1_T9.js
index 53cc23d94b..e5893f3a9e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T9.js
@@ -11,7 +11,4 @@ description: Execute /b{42,93}c/.exec("aaabbbbcccddeeeefffff") and check results
var __executed = /b{42,93}c/.test("aaabbbbcccddeeeefffff");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /b{42,93}c/.test("aaabbbbcccddeeeefffff") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T1.js b/test/built-ins/RegExp/S15.10.2.7_A2_T1.js
index 1d14e8d256..2a09a40430 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A2_T1.js
@@ -15,24 +15,28 @@ var __expected = ["box1"];
__expected.index = 5;
__expected.input = "CE\uFFFFL\uFFDDbox127";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T2.js b/test/built-ins/RegExp/S15.10.2.7_A2_T2.js
index 2da38406df..20d6909ad7 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A2_T2.js
@@ -15,24 +15,28 @@ var __expected = ["CEL"];
__expected.index = 0;
__expected.input = "CELL\uFFDDbox127";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T3.js b/test/built-ins/RegExp/S15.10.2.7_A2_T3.js
index 8a490f4008..435f852804 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A2_T3.js
@@ -15,24 +15,28 @@ var __expected = ["bbc"];
__expected.index = 5;
__expected.input = "aaabbbbcccddeeeefffff";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T4.js b/test/built-ins/RegExp/S15.10.2.7_A2_T4.js
index a959300d91..7bf9e7285b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A2_T4.js
@@ -11,7 +11,4 @@ description: Execute /b{8}c/.test("aaabbbbcccddeeeefffff") and check results
var __executed = /b{8}/.test("aaabbbbcccddeeeefffff");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T1.js b/test/built-ins/RegExp/S15.10.2.7_A3_T1.js
index a8b66cb5cf..342d077efe 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T1.js
@@ -15,24 +15,28 @@ var __expected = [" java\n"];
__expected.index = 8;
__expected.input = "language java\n";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T10.js b/test/built-ins/RegExp/S15.10.2.7_A3_T10.js
index a8c8e1c082..eca6f7a429 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T10.js
@@ -11,7 +11,4 @@ description: Execute /o+/.test("abcdefg") and check results
var __executed = /o+/.test("abcdefg");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /o+/.test("abcdefg") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T11.js b/test/built-ins/RegExp/S15.10.2.7_A3_T11.js
index aaee0e071e..322065f59b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T11.js
@@ -15,24 +15,28 @@ var __expected = ["d"];
__expected.index = 3;
__expected.input = "abcdefg";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /d+/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /d+/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /d+/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /d+/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T12.js b/test/built-ins/RegExp/S15.10.2.7_A3_T12.js
index 26fe5575db..b8e4045d13 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T12.js
@@ -15,24 +15,28 @@ var __expected = ["bbbbbbb","bbbbb","b","b"];
__expected.index = 1;
__expected.input = "abbbbbbbc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T13.js b/test/built-ins/RegExp/S15.10.2.7_A3_T13.js
index ad0fc2c0a1..e86583214e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T13.js
@@ -15,24 +15,28 @@ var __expected = ["bbbbbbb","bbbbbbb",""];
__expected.index = 1;
__expected.input = "abbbbbbbc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T14.js b/test/built-ins/RegExp/S15.10.2.7_A3_T14.js
index a98f96ed7d..00c65ea70c 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T14.js
@@ -15,24 +15,28 @@ var __expected = ["bbbbbbb"];
__expected.index = 1;
__expected.input = "abbbbbbbc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /b*b+/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /b*b+/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /b*b+/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /b*b+/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T2.js b/test/built-ins/RegExp/S15.10.2.7_A3_T2.js
index 3ffd5722d4..64f3df564b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T2.js
@@ -15,24 +15,28 @@ var __expected = ["\t java "];
__expected.index = 0;
__expected.input = "\t java object";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T3.js b/test/built-ins/RegExp/S15.10.2.7_A3_T3.js
index 52a643ba2f..087358f26e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T3.js
@@ -11,7 +11,4 @@ description: Execute /\s+java\s+/.test("\t javax package") and check results
var __executed = /\s+java\s+/.test("\t javax package");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /\\s+java\\s+/.test("\\t javax package") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T4.js b/test/built-ins/RegExp/S15.10.2.7_A3_T4.js
index 8151b5ddda..310a32e364 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T4.js
@@ -11,7 +11,4 @@ description: Execute /\s+java\s+/.test("java\n\nobject") and check results
var __executed = /\s+java\s+/.test("java\n\nobject");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /\\s+java\\s+/.test("java\\n\\nobject") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T5.js b/test/built-ins/RegExp/S15.10.2.7_A3_T5.js
index 61be63a924..753db742f2 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T5.js
@@ -17,24 +17,28 @@ var __expected = ["x2"];
__expected.index = 10;
__expected.input = "x 2 ff 55 x2 as1 z12 abc12.0";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T6.js b/test/built-ins/RegExp/S15.10.2.7_A3_T6.js
index 1df080daa1..86ac01549f 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T6.js
@@ -15,24 +15,28 @@ var __expected = ["abc123"];
__expected.index = 2;
__expected.input = "__abc123.0";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T7.js b/test/built-ins/RegExp/S15.10.2.7_A3_T7.js
index 75bee83204..3aa1fb841f 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T7.js
@@ -17,24 +17,28 @@ var __expected = ["x2","2"];
__expected.index = 10;
__expected.input = "x 2 ff 55 x2 as1 z12 abc12.0";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T8.js b/test/built-ins/RegExp/S15.10.2.7_A3_T8.js
index 871f61d01b..d7bbd24c24 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T8.js
@@ -15,24 +15,28 @@ var __expected = ["abc123","123"];
__expected.index = 2;
__expected.input = "__abc123.0";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T9.js b/test/built-ins/RegExp/S15.10.2.7_A3_T9.js
index e3c599d667..dd7875593e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T9.js
@@ -15,24 +15,28 @@ var __expected = ["ddddd"];
__expected.index = 3;
__expected.input = "abcdddddefg";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /d+/.exec("abcdddddefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /d+/.exec("abcdddddefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /d+/.exec("abcdddddefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /d+/.exec("abcdddddefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T1.js b/test/built-ins/RegExp/S15.10.2.7_A4_T1.js
index 9a70be4a3b..db50b4e36f 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T1.js
@@ -15,24 +15,28 @@ var __expected = [""];
__expected.index = 0;
__expected.input = '"beast"-nickname';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T10.js b/test/built-ins/RegExp/S15.10.2.7_A4_T10.js
index be158727a1..9b1fe42885 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T10.js
@@ -15,24 +15,28 @@ var __expected = [""];
__expected.index = 0;
__expected.input = 'abcddddefg';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /d*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /d*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /d*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /d*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T11.js b/test/built-ins/RegExp/S15.10.2.7_A4_T11.js
index 7dd3e15e9d..7eee88ef16 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T11.js
@@ -15,24 +15,28 @@ var __expected = ["cdddd"];
__expected.index = 2;
__expected.input = 'abcddddefg';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /cd*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /cd*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /cd*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /cd*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T12.js b/test/built-ins/RegExp/S15.10.2.7_A4_T12.js
index 11c8169563..131df04592 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T12.js
@@ -15,24 +15,28 @@ var __expected = ["cd"];
__expected.index = 2;
__expected.input = 'abcdefg';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /cx*d/.exec(\'abcdefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /cx*d/.exec(\'abcdefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /cx*d/.exec(\'abcdefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /cx*d/.exec(\'abcdefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T13.js b/test/built-ins/RegExp/S15.10.2.7_A4_T13.js
index ba98d5b959..8521dcf59e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T13.js
@@ -15,24 +15,28 @@ var __expected = ["xxxxxxx","xxxxxx","x"];
__expected.index = 0;
__expected.input = 'xxxxxxx';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T14.js b/test/built-ins/RegExp/S15.10.2.7_A4_T14.js
index 40e5c91ac7..c58778d40b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T14.js
@@ -15,24 +15,28 @@ var __expected = ["1234567890","123456789","0"];
__expected.index = 0;
__expected.input = '1234567890';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T15.js b/test/built-ins/RegExp/S15.10.2.7_A4_T15.js
index 0d6c3e7223..85242811ea 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T15.js
@@ -15,24 +15,28 @@ var __expected = ["1234567890","12345678","0"];
__expected.index = 0;
__expected.input = '1234567890';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T16.js b/test/built-ins/RegExp/S15.10.2.7_A4_T16.js
index 40dd92c0e7..d3e3b4ccec 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T16.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T16.js
@@ -15,24 +15,28 @@ var __expected = ["xxxxxxx","xxxxxxx",""];
__expected.index = 0;
__expected.input = 'xxxxxxx';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T17.js b/test/built-ins/RegExp/S15.10.2.7_A4_T17.js
index ce7c02a07a..3cc4ca7613 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T17.js
@@ -15,24 +15,28 @@ var __expected = ["xxxxxxyyyyyy"];
__expected.index = 0;
__expected.input = 'xxxxxxyyyyyy';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T18.js b/test/built-ins/RegExp/S15.10.2.7_A4_T18.js
index 96040b68e7..749dc90c65 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T18.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T18.js
@@ -15,24 +15,28 @@ var __expected = ["bcd"];
__expected.index = 1;
__expected.input = 'abcdef';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T19.js b/test/built-ins/RegExp/S15.10.2.7_A4_T19.js
index 921346cd5a..028e07d44f 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T19.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T19.js
@@ -15,24 +15,28 @@ var __expected = ["bcde"];
__expected.index = 1;
__expected.input = 'abcdef';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T2.js b/test/built-ins/RegExp/S15.10.2.7_A4_T2.js
index bfee314678..baff8315ad 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T2.js
@@ -15,24 +15,28 @@ var __expected = ["alice said: "];
__expected.index = 0;
__expected.input = 'alice said: "don\'t"';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T20.js b/test/built-ins/RegExp/S15.10.2.7_A4_T20.js
index d81da4dc00..a7feda6881 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T20.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T20.js
@@ -15,24 +15,28 @@ var __expected = ["a1b2c3"];
__expected.index = 0;
__expected.input = 'a1b2c3';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /.*/.exec(\'a1b2c3\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /.*/.exec(\'a1b2c3\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /.*/.exec(\'a1b2c3\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /.*/.exec(\'a1b2c3\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T21.js b/test/built-ins/RegExp/S15.10.2.7_A4_T21.js
index 5652a76410..9ff1313201 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T21.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T21.js
@@ -11,7 +11,4 @@ description: Execute /[xyz]*1/.test('a0.b2.c3') and check results
var __executed = /[xyz]*1/.test('a0.b2.c3');
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T3.js b/test/built-ins/RegExp/S15.10.2.7_A4_T3.js
index fbb4222e08..7461bd1a43 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T3.js
@@ -15,24 +15,28 @@ var __expected = ["before\'i\'start"];
__expected.index = 0;
__expected.input = "before\'i\'start";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^"]*/.exec("before\'i\'start"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^"]*/.exec("before\'i\'start"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^"]*/.exec("before\'i\'start"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^"]*/.exec("before\'i\'start"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T4.js b/test/built-ins/RegExp/S15.10.2.7_A4_T4.js
index a4b1c78ca3..c767a8df9c 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T4.js
@@ -17,24 +17,28 @@ var __expected = ["alice "];
__expected.index = 0;
__expected.input = 'alice \"sweep\": "don\'t"';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T5.js b/test/built-ins/RegExp/S15.10.2.7_A4_T5.js
index 3da9a13b9d..5e762fa8ae 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T5.js
@@ -17,24 +17,28 @@ var __expected = ["alice "];
__expected.index = 0;
__expected.input = 'alice "sweep": "don\'t"';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T6.js b/test/built-ins/RegExp/S15.10.2.7_A4_T6.js
index 646423fd38..dd44642fbf 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T6.js
@@ -17,24 +17,28 @@ var __expected = ["\"sweep\""];
__expected.index = 6;
__expected.input = 'alice "sweep": "don\'t"';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T7.js b/test/built-ins/RegExp/S15.10.2.7_A4_T7.js
index 3add3401fa..5dec38221f 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T7.js
@@ -17,24 +17,28 @@ var __expected = ["\'don\'"];
__expected.index = 17;
__expected.input = 'alice cries out: \'don\'t\'';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T8.js b/test/built-ins/RegExp/S15.10.2.7_A4_T8.js
index 120446fd3f..12499974f9 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T8.js
@@ -13,7 +13,4 @@ description: >
var __executed = /["'][^"']*["']/.test('alice cries out: don\'t');
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /["\'][^"\']*["\']/.test(\'alice cries out: don\'t\') === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T9.js b/test/built-ins/RegExp/S15.10.2.7_A4_T9.js
index 35b8704c00..8fd921196a 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T9.js
@@ -17,24 +17,28 @@ var __expected = ['\"\"'];
__expected.index = 16;
__expected.input = 'alice cries out:\"\"';
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T1.js b/test/built-ins/RegExp/S15.10.2.7_A5_T1.js
index 5a048d0b85..9163b76d2e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T1.js
@@ -17,24 +17,28 @@ var __expected = ["javascript", "script"];
__expected.index = 7;
__expected.input = "state: javascript is extension of ecma script";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T10.js b/test/built-ins/RegExp/S15.10.2.7_A5_T10.js
index 58443c810b..2de3932a8a 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T10.js
@@ -15,24 +15,28 @@ var __expected = ["az"];
__expected.index = 3;
__expected.input = "123az789";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T11.js b/test/built-ins/RegExp/S15.10.2.7_A5_T11.js
index c345c402af..0ea99d51ca 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T11.js
@@ -15,24 +15,28 @@ var __expected = ["?????"];
__expected.index = 0;
__expected.input = "?????";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T12.js b/test/built-ins/RegExp/S15.10.2.7_A5_T12.js
index 7ee959e892..4f00e08673 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T12.js
@@ -15,24 +15,28 @@ var __expected = ["test"];
__expected.index = 0;
__expected.input = "test";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T2.js b/test/built-ins/RegExp/S15.10.2.7_A5_T2.js
index afd4f76e55..56d773802e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T2.js
@@ -17,24 +17,28 @@ var __expected = ["java", undefined];
__expected.index = 7;
__expected.input = "state: java and javascript are vastly different";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T3.js b/test/built-ins/RegExp/S15.10.2.7_A5_T3.js
index 5014783bdb..5ccbe55b35 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T3.js
@@ -13,7 +13,4 @@ description: >
var __executed = /java(script)?/.test("state: both Java and JavaScript used in web development");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /java(script)?/.test("state: both Java and JavaScript used in web development") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T4.js b/test/built-ins/RegExp/S15.10.2.7_A5_T4.js
index b15a2ad8ff..58396ec6e1 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T4.js
@@ -15,24 +15,28 @@ var __expected = ["cde"];
__expected.index = 2;
__expected.input = "abcdef";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /cd?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /cd?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /cd?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /cd?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T5.js b/test/built-ins/RegExp/S15.10.2.7_A5_T5.js
index d593948912..308e7458b9 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T5.js
@@ -15,24 +15,28 @@ var __expected = ["cde"];
__expected.index = 2;
__expected.input = "abcdef";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /cdx?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /cdx?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /cdx?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /cdx?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T6.js b/test/built-ins/RegExp/S15.10.2.7_A5_T6.js
index 06a028d741..0f7434c7b8 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T6.js
@@ -15,24 +15,28 @@ var __expected = ["pqrst"];
__expected.index = 0;
__expected.input = "pqrstuvw";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /o?pqrst/.exec("pqrstuvw"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T7.js b/test/built-ins/RegExp/S15.10.2.7_A5_T7.js
index 0676a2d2f1..4ff5b37c8b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T7.js
@@ -15,24 +15,28 @@ var __expected = [""];
__expected.index = 0;
__expected.input = "abcd";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /x?y?z?/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /x?y?z?/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /x?y?z?/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /x?y?z?/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T8.js b/test/built-ins/RegExp/S15.10.2.7_A5_T8.js
index 5b27963148..d99aa9be64 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T8.js
@@ -15,24 +15,28 @@ var __expected = ["abc"];
__expected.index = 0;
__expected.input = "abcd";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /x?ay?bz?c/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /x?ay?bz?c/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /x?ay?bz?c/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /x?ay?bz?c/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T9.js b/test/built-ins/RegExp/S15.10.2.7_A5_T9.js
index 912d48fb22..2944dfe41b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T9.js
@@ -15,24 +15,28 @@ var __expected = ["bbbb"];
__expected.index = 1;
__expected.input = "abbbbc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /b?b?b?b/.exec("abbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /b?b?b?b/.exec("abbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /b?b?b?b/.exec("abbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /b?b?b?b/.exec("abbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T1.js b/test/built-ins/RegExp/S15.10.2.7_A6_T1.js
index 53f7ab043d..e69ed4f74e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T1.js
@@ -16,24 +16,28 @@ var __expected = ["bbbbc"];
__expected.index = 3;
__expected.input = "aaabbbbcccddeeeefffff";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T2.js b/test/built-ins/RegExp/S15.10.2.7_A6_T2.js
index 4448aaed2f..156844f3b4 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T2.js
@@ -12,7 +12,4 @@ description: Execute /b{8,}c/.test("aaabbbbcccddeeeefffff") and check results
var __executed = /b{8,}c/.test("aaabbbbcccddeeeefffff");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /b{8,}c/.test("aaabbbbcccddeeeefffff") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T3.js b/test/built-ins/RegExp/S15.10.2.7_A6_T3.js
index f83870be1c..02e6007baf 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T3.js
@@ -16,24 +16,28 @@ var __expected = ["456646"];
__expected.index = 3;
__expected.input = "wqe456646dsff";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T4.js b/test/built-ins/RegExp/S15.10.2.7_A6_T4.js
index b172999e08..a3eb280216 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T4.js
@@ -16,24 +16,28 @@ var __expected = ["123123","123"];
__expected.index = 0;
__expected.input = "123123";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(123){1,}/.exec("123123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(123){1,}/.exec("123123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(123){1,}/.exec("123123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(123){1,}/.exec("123123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T5.js b/test/built-ins/RegExp/S15.10.2.7_A6_T5.js
index e02b660ef0..b034b928ed 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T5.js
@@ -16,24 +16,28 @@ var __expected = ["123123x123","123"];
__expected.index = 0;
__expected.input = "123123x123";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(123){1,}x\\1\\/.exec("123123x123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T6.js b/test/built-ins/RegExp/S15.10.2.7_A6_T6.js
index 61f282c3e9..19f2dc3aa0 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T6.js
@@ -16,24 +16,28 @@ var __expected = ["xxxxxxx"];
__expected.index = 0;
__expected.input = "xxxxxxx";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T1.js b/test/built-ins/RegExp/S15.10.2.8_A1_T1.js
index 84c1a8640e..e05710e076 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T1.js
@@ -16,24 +16,28 @@ var __expected = ["", "aaa"];
__expected.index = 1;
__expected.input = "baaabac";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(?=(a+))/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(?=(a+))/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(?=(a+))/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(?=(a+))/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T2.js b/test/built-ins/RegExp/S15.10.2.8_A1_T2.js
index 5866f825ce..143c8eb911 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T2.js
@@ -16,24 +16,28 @@ var __expected = ["aba", "a"];
__expected.index = 3;
__expected.input = "baaabac";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T3.js b/test/built-ins/RegExp/S15.10.2.8_A1_T3.js
index 7b166606a8..eb6fc357fb 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T3.js
@@ -18,24 +18,28 @@ var __expected = ["Javascript", "script"];
__expected.index = 5;
__expected.input = "just Javascript: the way af jedi";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T4.js b/test/built-ins/RegExp/S15.10.2.8_A1_T4.js
index 8f020dbc29..747045ff3e 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T4.js
@@ -18,24 +18,28 @@ var __expected = ["java", undefined];
__expected.index = 9;
__expected.input = "taste of java: the cookbook ";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T5.js b/test/built-ins/RegExp/S15.10.2.8_A1_T5.js
index e259a5ac73..6f0b7e1b63 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T5.js
@@ -14,7 +14,4 @@ description: >
var __executed = /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript engine");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /[Jj]ava([Ss]cript)?(?=\\:)/.test("rhino is JavaScript engine") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T1.js b/test/built-ins/RegExp/S15.10.2.8_A2_T1.js
index e70a45692e..b2d2e470a0 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T1.js
@@ -18,24 +18,28 @@ var __expected = ["baaabaac", "ba", undefined, "abaac"];
__expected.index = 0;
__expected.input = "baaabaac";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T10.js b/test/built-ins/RegExp/S15.10.2.8_A2_T10.js
index fa70b2c302..480d1f4f55 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T10.js
@@ -16,24 +16,28 @@ var __expected = [""];
__expected.index = 1;
__expected.input = "bc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(?!a|b)|c/.exec("bc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(?!a|b)|c/.exec("bc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(?!a|b)|c/.exec("bc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(?!a|b)|c/.exec("bc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T11.js b/test/built-ins/RegExp/S15.10.2.8_A2_T11.js
index 2d61c42c7e..b7700f69d6 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T11.js
@@ -16,24 +16,28 @@ var __expected = [""];
__expected.index = 0;
__expected.input = "d";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(?!a|b)|c/.exec("d"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(?!a|b)|c/.exec("d"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(?!a|b)|c/.exec("d"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(?!a|b)|c/.exec("d"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T2.js b/test/built-ins/RegExp/S15.10.2.8_A2_T2.js
index a0d32bac69..0b3a23bd9e 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T2.js
@@ -18,24 +18,28 @@ var __expected = ["JavaBeans", "Beans"];
__expected.index = 9;
__expected.input = "using of JavaBeans technology";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T3.js b/test/built-ins/RegExp/S15.10.2.8_A2_T3.js
index 9ed52b4f67..bcea026267 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T3.js
@@ -14,7 +14,4 @@ description: >
var __executed = /Java(?!Script)([A-Z]\w*)/.test("using of Java language");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /Java(?!Script)([A-Z]\\w*)/.test("using of Java language") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T4.js b/test/built-ins/RegExp/S15.10.2.8_A2_T4.js
index 87f3898465..507883069a 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T4.js
@@ -14,7 +14,4 @@ description: >
var __executed = /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter ");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T5.js b/test/built-ins/RegExp/S15.10.2.8_A2_T5.js
index 2e16e5ca6d..daf166150e 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T5.js
@@ -18,24 +18,28 @@ var __expected = ["JavaScr", "Scr"];
__expected.index = 0;
__expected.input = "JavaScr oops ipt ";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T6.js b/test/built-ins/RegExp/S15.10.2.8_A2_T6.js
index d04a17ecb6..563c2b4c1f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T6.js
@@ -16,24 +16,28 @@ var __expected = ['.', '.'];
__expected.index = 2;
__expected.input = "ah.info";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T7.js b/test/built-ins/RegExp/S15.10.2.8_A2_T7.js
index 5c47ae3b6e..d8c517cb97 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T7.js
@@ -16,24 +16,28 @@ var __expected = ['/', '/'];
__expected.index = 2;
__expected.input = "ah/info";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T8.js b/test/built-ins/RegExp/S15.10.2.8_A2_T8.js
index 056e89ef7d..6834639ca0 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T8.js
@@ -12,7 +12,4 @@ description: Execute /(\.(?!com|org)|\/)/.test("ah.com") and check results
var __executed = /(\.(?!com|org)|\/)/.test("ah.com");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /(\\.(?!com|org)|\\/)/.test("ah.com") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T9.js b/test/built-ins/RegExp/S15.10.2.8_A2_T9.js
index 363a71fb11..5848126501 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T9.js
@@ -16,24 +16,28 @@ var __expected = [""];
__expected.index = 0;
__expected.input = "";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(?!a|b)|c/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(?!a|b)|c/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(?!a|b)|c/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(?!a|b)|c/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T1.js b/test/built-ins/RegExp/S15.10.2.8_A3_T1.js
index 6b644d2e24..2e52fd59fe 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T1.js
@@ -19,24 +19,28 @@ var __expected = ["javaScript is funny","javaScript","Script","funny"];
__expected.index = 9;
__expected.input = "Learning javaScript is funny, really";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T10.js b/test/built-ins/RegExp/S15.10.2.8_A3_T10.js
index 7d23272dd3..ecea63ec44 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T10.js
@@ -17,24 +17,28 @@ var __expected = ["123456123456","123","456"];
__expected.index = 0;
__expected.input = "123456123456";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T11.js b/test/built-ins/RegExp/S15.10.2.8_A3_T11.js
index 914cffa2d5..4ecbefd597 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T11.js
@@ -17,24 +17,28 @@ var __expected = ["abcdefg","bcdefg","de"];
__expected.index = 0;
__expected.input = "abcdefgh";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T12.js b/test/built-ins/RegExp/S15.10.2.8_A3_T12.js
index 5db7a888ce..f5067e9061 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T12.js
@@ -17,24 +17,28 @@ var __expected = ["abcdef","abc","bc","c","def","ef","f"];
__expected.index = 1;
__expected.input = "xabcdefg";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T13.js b/test/built-ins/RegExp/S15.10.2.8_A3_T13.js
index 52e1a09858..7978c8ac04 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T13.js
@@ -19,24 +19,28 @@ var __expected = ["abcdefbcef","abc","bc","c","def","ef","f"];
__expected.index = 1;
__expected.input = "xabcdefbcefg";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T14.js b/test/built-ins/RegExp/S15.10.2.8_A3_T14.js
index 0ea6acbe73..3e93639101 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T14.js
@@ -17,24 +17,28 @@ var __expected = ["abcd",""];
__expected.index = 0;
__expected.input = "abcd";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T15.js b/test/built-ins/RegExp/S15.10.2.8_A3_T15.js
index 49f3d67979..8fc1c2e741 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T15.js
@@ -16,15 +16,15 @@ var __openParen = '(';
var __closeParen = ')';
var __pattern = '';
var numParens = 200;
-
+
for (var i=0; iKibology for all
\nAll for Kibology
\n'
__expected.index = 7;
__expected.input = __html;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T18.js b/test/built-ins/RegExp/S15.10.2.8_A3_T18.js
index 75db65b1de..907c3b6a0c 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T18.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T18.js
@@ -15,7 +15,4 @@ var __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".repl
var __expected = 'To sign up click here';
-//CHECK#1
-if (__replaced !== __expected) {
- throw new Test262Error('#1: __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, \'$2\'); __replaced === ' + __expected + '. Actual: ' + __replaced);
-}
+assert.sameValue(__replaced, __expected, 'The value of __replaced is expected to equal the value of __expected');
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T19.js b/test/built-ins/RegExp/S15.10.2.8_A3_T19.js
index 61b709b38b..33d5b7bcc9 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T19.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T19.js
@@ -19,24 +19,28 @@ var __expected = ["Course_Creator = Test","Course_Creator",undefined];
__expected.index = 0;
__expected.input = "Course_Creator = Test";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T2.js b/test/built-ins/RegExp/S15.10.2.8_A3_T2.js
index 757f20fc6b..a7c007202d 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T2.js
@@ -19,24 +19,28 @@ var __expected = ["Java is fun","Java",undefined,"fun"];
__expected.index = 16;
__expected.input = "Developing with Java is fun, try it";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T20.js b/test/built-ins/RegExp/S15.10.2.8_A3_T20.js
index a1251ccca5..12b05bf21e 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T20.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T20.js
@@ -17,24 +17,28 @@ var __expected = ["AAA","A","AA"];
__expected.index = 0;
__expected.input = "AAA";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T21.js b/test/built-ins/RegExp/S15.10.2.8_A3_T21.js
index a6385f5c57..2eb0b4eac8 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T21.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T21.js
@@ -17,24 +17,28 @@ var __expected = ["AA","A","A"];
__expected.index = 0;
__expected.input = "AA";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^(A)?(A.*)$/.exec("AA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T22.js b/test/built-ins/RegExp/S15.10.2.8_A3_T22.js
index e3b55b6ab3..37b76ebf38 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T22.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T22.js
@@ -17,24 +17,28 @@ var __expected = ["A",undefined,"A"];
__expected.index = 0;
__expected.input = "A";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /^(A)?(A.*)$/.exec("A"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /^(A)?(A.*)$/.exec("A"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /^(A)?(A.*)$/.exec("A"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /^(A)?(A.*)$/.exec("A"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T23.js b/test/built-ins/RegExp/S15.10.2.8_A3_T23.js
index 49dfd6a592..884c4637c7 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T23.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T23.js
@@ -21,24 +21,28 @@ var __expected = ["AAAaaAAaaaf;lrlrzs","A","AAaaAAaaaf;lrlrzs"];
__expected.index = 13;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T24.js b/test/built-ins/RegExp/S15.10.2.8_A3_T24.js
index c255b6e00e..2d36ca4773 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T24.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T24.js
@@ -21,24 +21,28 @@ var __expected = ["AAaaAAaaaf;lrlrzs","A","AaaAAaaaf;lrlrzs"];
__expected.index = 13;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T25.js b/test/built-ins/RegExp/S15.10.2.8_A3_T25.js
index 50c3a23093..69f8256fe4 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T25.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T25.js
@@ -21,24 +21,28 @@ var __expected = ["AaaAAaaaf;lrlrzs",undefined,"AaaAAaaaf;lrlrzs"];
__expected.index = 13;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T26.js b/test/built-ins/RegExp/S15.10.2.8_A3_T26.js
index 5a5091f901..880ef41ba0 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T26.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T26.js
@@ -19,24 +19,28 @@ var __expected = ["a",undefined];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "a"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T27.js b/test/built-ins/RegExp/S15.10.2.8_A3_T27.js
index 2d1cca6bc2..b57b3105dc 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T27.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T27.js
@@ -19,24 +19,28 @@ var __expected = ["a",undefined];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "a"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T28.js b/test/built-ins/RegExp/S15.10.2.8_A3_T28.js
index 2c1c221770..4f6a6e26d1 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T28.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T28.js
@@ -19,24 +19,28 @@ var __expected = ['a', undefined, 'a'];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T29.js b/test/built-ins/RegExp/S15.10.2.8_A3_T29.js
index 4ac349fad7..01c2fde62e 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T29.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T29.js
@@ -19,24 +19,28 @@ var __expected = ['a', undefined];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T3.js b/test/built-ins/RegExp/S15.10.2.8_A3_T3.js
index a76a6e04af..ce856053af 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T3.js
@@ -16,7 +16,4 @@ description: >
var __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance");
-//CHECK#1
-if (__executed) {
- throw new Test262Error('#1: /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") === false');
-}
+assert(!__executed, 'The value of !__executed is expected to be true');
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T30.js b/test/built-ins/RegExp/S15.10.2.8_A3_T30.js
index 9cc90bedcc..3f79c7fda2 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T30.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T30.js
@@ -19,24 +19,28 @@ var __expected = ['ab', "a"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T31.js b/test/built-ins/RegExp/S15.10.2.8_A3_T31.js
index fea072ab52..ee3390f904 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T31.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T31.js
@@ -19,24 +19,28 @@ var __expected = ['abc', "ab"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T32.js b/test/built-ins/RegExp/S15.10.2.8_A3_T32.js
index c266fe6bc1..6d7965ec6f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T32.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T32.js
@@ -19,24 +19,28 @@ var __expected = ['www.netscape.com', 'netscape.', 'netscap'];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T33.js b/test/built-ins/RegExp/S15.10.2.8_A3_T33.js
index 89700b7b34..69da65cc9b 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T33.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T33.js
@@ -19,24 +19,28 @@ var __expected = ['www.netscape.com', 'netscape.', 'netscap', 'e'];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T4.js b/test/built-ins/RegExp/S15.10.2.8_A3_T4.js
index 92765c2f0b..022165bdf7 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T4.js
@@ -17,24 +17,28 @@ var __expected = ["abc","abc"];
__expected.index = 0;
__expected.input = "abc";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(abc)/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(abc)/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(abc)/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(abc)/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T5.js b/test/built-ins/RegExp/S15.10.2.8_A3_T5.js
index 495e4131d1..fe4cb74d6d 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T5.js
@@ -17,24 +17,28 @@ var __expected = ["abcdefg","bc","ef"];
__expected.index = 0;
__expected.input = "abcdefg";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T6.js b/test/built-ins/RegExp/S15.10.2.8_A3_T6.js
index d934778225..b109ea489d 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T6.js
@@ -17,24 +17,28 @@ var __expected = ["abcdefg","abc","defg"];
__expected.index = 0;
__expected.input = "abcdefgh";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T7.js b/test/built-ins/RegExp/S15.10.2.8_A3_T7.js
index 1e45af0485..a7187c32e2 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T7.js
@@ -17,24 +17,28 @@ var __expected = ["aabcdaa","aa"];
__expected.index = 0;
__expected.input = "aabcdaabcd";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T8.js b/test/built-ins/RegExp/S15.10.2.8_A3_T8.js
index 4de50e9cb7..a84020dda2 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T8.js
@@ -17,24 +17,28 @@ var __expected = ["aabcdaa","aa"];
__expected.index = 0;
__expected.input = "aabcdaabcd";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T9.js b/test/built-ins/RegExp/S15.10.2.8_A3_T9.js
index 806d967354..7eb60853c0 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T9.js
@@ -17,24 +17,28 @@ var __expected = ["aabcdaa","aa"];
__expected.index = 0;
__expected.input = "aabcdaabcd";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T1.js b/test/built-ins/RegExp/S15.10.2.8_A4_T1.js
index 7628691b9d..57e2685e3e 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T1.js
@@ -17,24 +17,28 @@ var __expected = ["abcde"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T2.js b/test/built-ins/RegExp/S15.10.2.8_A4_T2.js
index cc6e478ada..5802a5543d 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T2.js
@@ -17,24 +17,28 @@ var __expected = ["line 1"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T3.js b/test/built-ins/RegExp/S15.10.2.8_A4_T3.js
index 0d2a064335..a4ea883c9f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T3.js
@@ -17,24 +17,28 @@ var __expected = ["this is a test"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T4.js b/test/built-ins/RegExp/S15.10.2.8_A4_T4.js
index 2796146d40..6cca46e06a 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T4.js
@@ -17,24 +17,28 @@ var __expected = ["this is a *&^%$# test"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T5.js b/test/built-ins/RegExp/S15.10.2.8_A4_T5.js
index a8fd885881..6ae6d686c2 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T5.js
@@ -17,24 +17,28 @@ var __expected = ["...."];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "...."; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "...."; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "...."; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "...."; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T6.js b/test/built-ins/RegExp/S15.10.2.8_A4_T6.js
index 7d29dd276e..bc1ff5ec13 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T6.js
@@ -17,24 +17,28 @@ var __expected = ["abcdefghijklmnopqrstuvwxyz"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T7.js b/test/built-ins/RegExp/S15.10.2.8_A4_T7.js
index b2d728dae2..c5cf3f1bd0 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T7.js
@@ -17,24 +17,28 @@ var __expected = ["ABCDEFGHIJKLMNOPQRSTUVWXYZ"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T8.js b/test/built-ins/RegExp/S15.10.2.8_A4_T8.js
index c607994076..14b759638c 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T8.js
@@ -17,24 +17,28 @@ var __expected = ["`1234567890-=~!@#$%^&*()_+"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T9.js b/test/built-ins/RegExp/S15.10.2.8_A4_T9.js
index ded3e91e6a..d4c4049feb 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T9.js
@@ -17,24 +17,28 @@ var __expected = ["|\\[{]};:\"\',<>.?/"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A5_T1.js b/test/built-ins/RegExp/S15.10.2.8_A5_T1.js
index eced711176..61824872c9 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A5_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A5_T1.js
@@ -16,24 +16,28 @@ var __expected = ["ABC"];
__expected.index = 0;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A5_T2.js b/test/built-ins/RegExp/S15.10.2.8_A5_T2.js
index 9a6d6d513a..288108fcbd 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A5_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A5_T2.js
@@ -16,24 +16,28 @@ var __expected = ["def"];
__expected.index = 4;
__expected.input = __string;
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T1.js b/test/built-ins/RegExp/S15.10.2.9_A1_T1.js
index c7ac6bf732..68f1936bde 100644
--- a/test/built-ins/RegExp/S15.10.2.9_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.9_A1_T1.js
@@ -18,24 +18,28 @@ var __expected = ["the the", "the"];
__expected.index = 14;
__expected.input = "do you listen the the band";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T2.js b/test/built-ins/RegExp/S15.10.2.9_A1_T2.js
index 0aee5980b4..3adf2dc18f 100644
--- a/test/built-ins/RegExp/S15.10.2.9_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.9_A1_T2.js
@@ -19,24 +19,28 @@ var __expected = ["x01x01", "x01", undefined];
__expected.index = 6;
__expected.input = "x09x12x01x01u00FFu00FFx04x04x23";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T3.js b/test/built-ins/RegExp/S15.10.2.9_A1_T3.js
index 016f197391..b4f5c5e22c 100644
--- a/test/built-ins/RegExp/S15.10.2.9_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.9_A1_T3.js
@@ -19,24 +19,28 @@ var __expected = ["u00FFu00FF", "u00FF", "FF"];
__expected.index = 12;
__expected.input = "x09x12x01x05u00FFu00FFx04x04x23";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T5.js b/test/built-ins/RegExp/S15.10.2.9_A1_T5.js
index b0f6953c63..19e3e24d1a 100644
--- a/test/built-ins/RegExp/S15.10.2.9_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.9_A1_T5.js
@@ -16,24 +16,28 @@ var __expected = ["b", ""];
__expected.index = 0;
__expected.input = "baaac";
-//CHECK#1
-if (__executed.length !== __expected.length) {
- throw new Test262Error('#1: __executed = /(a*)b\\1+/.exec("baaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
-}
+assert.sameValue(
+ __executed.length,
+ __expected.length,
+ 'The value of __executed.length is expected to equal the value of __expected.length'
+);
-//CHECK#2
-if (__executed.index !== __expected.index) {
- throw new Test262Error('#2: __executed = /(a*)b\\1+/.exec("baaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
-}
+assert.sameValue(
+ __executed.index,
+ __expected.index,
+ 'The value of __executed.index is expected to equal the value of __expected.index'
+);
-//CHECK#3
-if (__executed.input !== __expected.input) {
- throw new Test262Error('#3: __executed = /(a*)b\\1+/.exec("baaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
-}
+assert.sameValue(
+ __executed.input,
+ __expected.input,
+ 'The value of __executed.input is expected to equal the value of __expected.input'
+);
-//CHECK#4
for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- throw new Test262Error('#4: __executed = /(a*)b\\1+/.exec("baaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+ assert.sameValue(
+ __executed[index],
+ __expected[index],
+ 'The value of __executed[index] is expected to equal the value of __expected[index]'
+ );
}
diff --git a/test/built-ins/RegExp/S15.10.2_A1_T1.js b/test/built-ins/RegExp/S15.10.2_A1_T1.js
index 73ecc7c087..8b17a20f16 100644
--- a/test/built-ins/RegExp/S15.10.2_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2_A1_T1.js
@@ -73,14 +73,15 @@ var __html=""+
'