Move pkg/cli from core/go to core/cli. Includes Frame AppShell, Stream, TaskTracker, Tree, Rich Table. Update imports to v0.0.1 tagged deps and fix openpgp import path for go-crypt split. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
444 B
Go
23 lines
444 B
Go
package cli
|
|
|
|
import "testing"
|
|
|
|
func TestGlyph(t *testing.T) {
|
|
UseUnicode()
|
|
if Glyph(":check:") != "✓" {
|
|
t.Errorf("Expected ✓, got %s", Glyph(":check:"))
|
|
}
|
|
|
|
UseASCII()
|
|
if Glyph(":check:") != "[OK]" {
|
|
t.Errorf("Expected [OK], got %s", Glyph(":check:"))
|
|
}
|
|
}
|
|
|
|
func TestCompileGlyphs(t *testing.T) {
|
|
UseUnicode()
|
|
got := compileGlyphs("Status: :check:")
|
|
if got != "Status: ✓" {
|
|
t.Errorf("Expected Status: ✓, got %s", got)
|
|
}
|
|
}
|