Commits

Anonymous committed ca2a204

sync newlines with changes in gich

  • Participants
  • Parent commits 426e642

Comments (0)

Files changed (2)

 Examples
 --------
     nix:
-        > gich -a ls cat sh
+        > gich -l ls cat sh
 
     windows:
-        > gich -a ping calc cmd
+        > gich -l ping calc cmd

File gich_test.go

 func TestFlagA() {
 	//             stdin, stdout, stderr
 	c := "gich" + exeExt
-	cmd, err := exec.Run("./gich"+exeExt, []string{"-a"}, nil, "", exec.DevNull, exec.Pipe, exec.DevNull)
+	cmd, err := exec.Run("./gich"+exeExt, []string{"-l"}, nil, "", exec.DevNull, exec.Pipe, exec.DevNull)
 	if err != nil {
 		panic("-a: " + err.String())
 	}
 	if err != nil {
 		panic("-s read:" + err.String())
 	}
-	if string(buf) != "None" {
+	if string(buf) != "None\n" {
 		panic("-s : got " + string(buf))
 	}
 	if err = cmd.Close(); err != nil {
 	if err != nil {
 		panic("-s read:" + err.String())
 	}
-	if string(buf) != "Found" {
+	if string(buf) != "Found\n" {
 		panic("-s : got " + string(buf))
 	}
 	if err = cmd.Close(); err != nil {