github.com/study-group-99/pilates@v0.2.2/libft_test.go (about) 1 package pilates 2 3 import ( 4 "os" 5 "testing" 6 7 "github.com/bh90210/clir" 8 ) 9 10 func TestLibftCommandInit(t *testing.T) { 11 os.Chdir("testdata/libft") 12 cli := clir.NewCli("test", "long test", "v0.0.0") 13 LibftCommand(cli) 14 err := cli.Run("libft", "init", "-f") 15 if err != nil { 16 t.Error(err) 17 } 18 } 19 20 func TestLibftCommandRun(t *testing.T) { 21 cli := clir.NewCli("test", "long test", "v0.0.0") 22 LibftCommand(cli) 23 err := cli.Run("libft", "run", "-ar") 24 if err != nil { 25 t.Error(err) 26 } 27 }