mirror of
https://gitea.com/gitea/act_runner
synced 2026-05-06 01:37:57 +02:00
15 lines
274 B
Go
15 lines
274 B
Go
package functions
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestFormat(t *testing.T) {
|
|
s, 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
|
|
}
|