mirror of
https://github.com/alecthomas/chroma.git
synced 2025-07-05 00:38:52 +02:00
Upgrade project to Go 1.19 and switch to alecthomas/assert/v2
This commit is contained in:
@ -3,15 +3,14 @@ package chroma
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
assert "github.com/alecthomas/assert/v2"
|
||||
)
|
||||
|
||||
func mustNewLexer(t *testing.T, config *Config, rules Rules) *RegexLexer { // nolint: forbidigo
|
||||
lexer, err := NewLexer(config, func() Rules {
|
||||
return rules
|
||||
})
|
||||
require.NoError(t, err)
|
||||
assert.NoError(t, err)
|
||||
return lexer
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user