HF RL Explorer

unicode text: add test

unicode text: add test: a task in smol-software-harbor (Harbor dataset). Truncate in text/text.go non ha test. Aggiungi in text/text test.go un test che verifichi che: conta i caratteri e non i byte ( Truncate("perché sì", 6) restituisce "perché…" ), che una stringa lunga esattamente n caratteri…

The task

`Truncate` in `text/text.go` non ha test. Aggiungi in `text/text_test.go` un test che verifichi che: conta i caratteri e non i byte (`Truncate("perché sì", 6)` restituisce `"perché…"`), che una stringa lunga esattamente `n` caratteri resta invariata senza `…`, e che una stringa più corta resta invariata. Non…

Part of efederici/smol-software-harbor.