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

Quelle  test_linedata.js

  Sprache: JAVA
 

/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
 */

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


// test that the LineData internal data structure works correctly

const CR = 0x0d;
const LF = 0x0a;

function run_test() {
  var data = new LineData();
  data.appendBytes(["a".charCodeAt(0), CR]);

  var out = { value: "" };
  Assert.ok(!data.readLine(out));

  data.appendBytes([LF]);
  Assert.ok(data.readLine(out));
  Assert.equal(out.value, "a");
}

Messung V0.5 in Prozent
C=88 H=100 G=94

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-04) ¤

*© 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.