mirror of https://github.com/on4kjm/FLEcli.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
713 B
30 lines
713 B
package cmd
|
|
|
|
import "testing"
|
|
|
|
func Test_getBraketedData(t *testing.T) {
|
|
type args struct {
|
|
inputLine string
|
|
braketType string
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
wantText string
|
|
wantCleanedLine string
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
gotText, gotCleanedLine := getBraketedData(tt.args.inputLine, tt.args.braketType)
|
|
if gotText != tt.wantText {
|
|
t.Errorf("getBraketedData() gotText = %v, want %v", gotText, tt.wantText)
|
|
}
|
|
if gotCleanedLine != tt.wantCleanedLine {
|
|
t.Errorf("getBraketedData() gotCleanedLine = %v, want %v", gotCleanedLine, tt.wantCleanedLine)
|
|
}
|
|
})
|
|
}
|
|
}
|