21 lines
335 B
Go
21 lines
335 B
Go
package input_parser
|
|
|
|
import (
|
|
"bbash/environment"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestParse(t *testing.T) {
|
|
test := parse("ls -abcd hej -ee tbtry --help - -o")
|
|
fmt.Println(test.Instruction)
|
|
fmt.Println(test.Args)
|
|
fmt.Println(test.Flags)
|
|
}
|
|
|
|
func TestInput(t *testing.T) {
|
|
|
|
input := input_str(&environment.Env{})
|
|
fmt.Println(input)
|
|
}
|