mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-04 10:50:20 +00:00
15 lines
272 B
Go
15 lines
272 B
Go
package functions
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestFormat(t *testing.T) {
|
|
s, err := Format("Hello {0}, you have {1} new messages", "Alice", 5)
|
|
assert.NoError(t, err)
|
|
fmt.Println(s) // Hello Alice, you have 5 new messages
|
|
}
|