Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/COBOL/Test-Suite/COBOL/IF/   (NIST Cobol-85 ©)  Datei vom 4.1.2008 mit Größe 54 kB image not shown  

Quellcodebibliothek match-stub-realms.js

  Sprache: JAVA
 

// Ensure regexp match stub uses the correct realm for the match object and
// the regexp statics.
function test() {
    var g1 = newGlobal({sameCompartmentAs: this});
    var g2 = newGlobal({sameCompartmentAs: this});
    g1.evaluate("function match(s) { return /(.)([\\d]+)/.exec(s); }");
    g2.evaluate("function match(s) { return /(.)([\\d]+)/.exec(s); }");
    for (var i = 0; i < 25; i++) {
        var res1 = g1.match(`A${i}`);
        var res2 = g2.match(`B${i}`);
        assertEq(objectGlobal(res1), g1);
        assertEq(objectGlobal(res2), g2);
        assertEq(g1.RegExp.$1"A");
        assertEq(g1.RegExp.$2, String(i));
        assertEq(g2.RegExp.$1"B");
        assertEq(g2.RegExp.$2, String(i));
    }
}
test();

Messung V0.5 in Prozent
C=80 H=97 G=88

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.23Bemerkung:  (vorverarbeitet am  2026-06-06) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.