Refactor kafka to pure Go (franz-go), fix DBC stubs, update Dockerfile
This commit is contained in:
23
pkg/can-go/internal/identifiers/char_test.go
Normal file
23
pkg/can-go/internal/identifiers/char_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package identifiers
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"gotest.tools/v3/assert"
|
||||
)
|
||||
|
||||
func TestIsAlphaChar(t *testing.T) {
|
||||
assert.Assert(t, IsAlphaChar('b'))
|
||||
assert.Assert(t, IsAlphaChar('C'))
|
||||
assert.Assert(t, !IsAlphaChar('Ö'))
|
||||
assert.Assert(t, !IsAlphaChar('_'))
|
||||
}
|
||||
|
||||
func TestIsNumChar(t *testing.T) {
|
||||
assert.Assert(t, IsNumChar('0'))
|
||||
assert.Assert(t, IsNumChar('1'))
|
||||
assert.Assert(t, IsNumChar('2'))
|
||||
assert.Assert(t, IsNumChar('9'))
|
||||
assert.Assert(t, !IsNumChar('/'))
|
||||
assert.Assert(t, !IsNumChar('a'))
|
||||
}
|
||||
Reference in New Issue
Block a user