Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/xre/test/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 906 B image not shown  

Quelle  test_fpuhandler.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/toolkit/xre/test/test_fpuhandler.html


<head>
  <title>Floating-point exception handler test</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>

<body onload="runTest()">
  <embed id="plugin1" type="application/x-test" width="400" height="400"></embed>

  <script class="testbody" type="application/javascript">
  SimpleTest.waitForExplicitFinish();

  function doDiv(x, y) {
    var z;
    z = x / y;

    for (let i = 0 + x; i < 1000; ++i)
      z = y / x;

    z = x / y;
    return z;
  }

  function runTest() {
    ok(isNaN(doDiv(0.00.0)), "Undefined division-by-zero doesn't crash");

    try {
      document.getElementById("plugin1").enableFPExceptions();
    } catch (e) {
      ok(true, "No special code to set the FPU bit in the testplugin.");
      SimpleTest.finish();
      return;
    }

    ok(isNaN(doDiv(0.00.0)), "Undefined division-by-zero doesn't crash again.");
    SimpleTest.finish();
  }
  </script>

Messung V0.5 in Prozent
C=94 H=79 G=86

¤ Dauer der Verarbeitung: 0.21 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.