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