14 lines
213 B
Go
14 lines
213 B
Go
package input_parser
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestParse(t *testing.T) {
|
|
test := parse("ls -abcd hej -ee tbtry --help")
|
|
fmt.Println(test.Instruction)
|
|
fmt.Println(test.Args)
|
|
fmt.Println(test.Flags)
|
|
}
|