package main

import (
	"reflect"
	"testing"
)

func TestSplitArgs(t *testing.T) {
	input := "--exclude '*.tmp files'\n--tag scheduled\nunterminated 'quote\n\n"
	want := []string{"--exclude", "*.tmp files", "--tag", "scheduled", "unterminated 'quote"}
	if got := splitArgs(input); !reflect.DeepEqual(got, want) {
		t.Fatalf("splitArgs() = %#v, want %#v", got, want)
	}
}
