agent/pkg/agentic/sanitise_example_test.go
Snider e58986a3b4 revert fcb9c189e5
revert fix(agentic): harden TODO workspace write

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-23 12:32:57 +01:00

17 lines
405 B
Go

// SPDX-License-Identifier: EUPL-1.2
package agentic
import (
core "dappco.re/go/core"
)
func Example_sanitiseBranchSlug() {
core.Println(sanitiseBranchSlug("Fix the broken tests!", 40))
// Output: fix-the-broken-tests
}
func Example_sanitiseBranchSlug_truncate() {
core.Println(len(sanitiseBranchSlug("a very long task description that should be truncated to fit", 20)) <= 20)
// Output: true
}