Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openclaw/extensions/irc/src/   (Openclaw AI Version 22©)  Datei vom 26.3.2026 mit Größe 730 B image not shown  

Quelle  control-chars.test.ts

  Sprache: JAVA
 

import { describe, expect, it } from "vitest";
import { hasIrcControlChars, isIrcControlChar, stripIrcControlChars } from "./control-chars.js";

describe("irc control char helpers", () => {
  it("detects IRC control characters by codepoint", () => {
    expect(isIrcControlChar(0x00)).toBe(true);
    expect(isIrcControlChar(0x1f)).toBe(true);
    expect(isIrcControlChar(0x7f)).toBe(true);
    expect(isIrcControlChar(0x20)).toBe(false);
  });

  it("detects and strips IRC control characters from strings", () => {
    expect(hasIrcControlChars("hello\u0002world")).toBe(true);
    expect(hasIrcControlChars("hello world")).toBe(false);
    expect(stripIrcControlChars("he\u0002llo\u007f world")).toBe("hello world");
  });
});

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

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

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