Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openclaw/src/auto-reply/reply/   (KI Agentensystem Version 22©)  Datei vom 26.3.2026 mit Größe 994 B image not shown  

Quelle  commands-reset-mode.test.ts

  Sprache: JAVA
 

Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

import { describe, expect, it } from "vitest";
import { parseSoftResetCommand } from "./commands-reset-mode.js";

describe("parseSoftResetCommand", () => {
  it("matches /reset soft with or without a tail", () => {
    expect(parseSoftResetCommand("/reset soft")).toEqual({ matched: true, tail: "" });
    expect(parseSoftResetCommand("/reset soft re-read persona files")).toEqual({
      matched: true,
      tail: "re-read persona files",
    });
    expect(parseSoftResetCommand("/reset soft\tre-read persona files")).toEqual({
      matched: true,
      tail: "re-read persona files",
    });
    expect(parseSoftResetCommand("/reset soft\nre-read persona files")).toEqual({
      matched: true,
      tail: "re-read persona files",
    });
  });

  it("rejects reset-prefixed typos without a command boundary", () => {
    expect(parseSoftResetCommand("/resetsoft")).toEqual({ matched: false });
    expect(parseSoftResetCommand("/resetsoft hello")).toEqual({ matched: false });
  });
});

¤ Dauer der Verarbeitung: 0.8 Sekunden  (vorverarbeitet am  2026-04-27) ¤

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