testing

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package testing provides test vector generation utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestVectorString

func GenerateTestVectorString(input string, tokens []int) string

GenerateTestVectorString creates a string representation for comparison.

func ValidateTokenization

func ValidateTokenization(input string, tokens []string) error

ValidateTokenization checks if tokenization is valid.

Types

type TestCase

type TestCase struct {
	Input       string
	Description string
	Category    string // "edge", "unicode", "whitespace", "contraction", etc.
}

TestCase represents a test case with metadata.

func GenerateTestCases

func GenerateTestCases() []TestCase

GenerateTestCases creates comprehensive test cases.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL