test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cases = map[common.Order]RawCase{
	common.Splitted:        {[][3]uint32{{1, 1, 1}, {5, 5, 5}, {8, 8, 8}}, "ghi"},
	common.Less:            {[][3]uint32{{1, 1, 1}, {5, 5, 9}}, "89a"},
	common.Prependable:     {[][3]uint32{{1, 1, 1}, {5, 5, 8}}, "789"},
	common.RightOverlap:    {[][3]uint32{{1, 1, 1}, {5, 5, 7}}, "678"},
	common.IncludingRight:  {[][3]uint32{{1, 1, 1}, {5, 5, 7}}, "6"},
	common.IncludingMiddle: {[][3]uint32{{1, 1, 1}, {5, 5, 6}}, "5"},
	common.IncludingLeft:   {[][3]uint32{{1, 1, 1}, {5, 5, 5}}, "4"},
	common.Equal:           {[][3]uint32{{1, 1, 1}, {5, 5, 5}}, "456"},
	common.IncludedLeft:    {[][3]uint32{{1, 1, 1}, {5, 5, 5}}, "4567"},
	common.IncludedMiddle:  {[][3]uint32{{1, 1, 1}, {5, 5, 4}}, "34567"},
	common.IncludedRight:   {[][3]uint32{{1, 1, 1}, {5, 5, 4}}, "3456"},
	common.LeftOverlap:     {[][3]uint32{{1, 1, 1}, {5, 5, 3}}, "234"},
	common.Appendable:      {[][3]uint32{{1, 1, 1}, {5, 5, 2}}, "123"},
	common.Greater:         {[][3]uint32{{1, 1, 1}, {5, 5, 1}}, "012"},
	common.Splitting:       {[][3]uint32{{1, 1, 1}}, "jkl"},
}

Functions

func DELSpanFrom

func DELSpanFrom(raw RawCase) *span.DELSpan

func FMTSpanFrom

func FMTSpanFrom(raw RawCase, props attrs.TextProps) *span.FMTSpan

func INSSpanFrom

func INSSpanFrom(raw RawCase) *span.INSSpan

func MODSpanFrom

func MODSpanFrom(raw RawCase) *span.MODSpan

func PointFrom

func PointFrom(raw [][3]uint32) point.Point

Types

type RawCase

type RawCase struct {
	Point [][3]uint32
	Text  string
}

Jump to

Keyboard shortcuts

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