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

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-18 11:22:27 +00: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
}