Skip to content

Commit

Permalink
ft. add failing test rw2_test.go for struct within struct
Browse files Browse the repository at this point in the history
  • Loading branch information
glycerine committed Feb 20, 2015
1 parent 5a44c03 commit 917a8a3
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions rw2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ import (

func Test015WriteRead_StructWithinStruct(t *testing.T) {

cv.Convey("Given bambam generated go bindings: with a struct within a struct", t, func() {
cv.Convey("then we should be able to write to disk, and read back the same structure", func() {
tdir := NewTempDir()
// comment the defer out to debug any rw test failures.
defer tdir.Cleanup()

tdir := NewTempDir()
// comment the defer out to debug any rw test failures.
defer tdir.Cleanup()
err := exec.Command("cp", "rw2.go.txt", tdir.DirPath+"/rw2.go").Run()
if err != nil {
panic(err)
}

MainArgs([]string{os.Args[0], "-o", tdir.DirPath, "rw2.go.txt"})
MainArgs([]string{os.Args[0], "-o", tdir.DirPath, "rw2.go.txt"})

err := exec.Command("cp", "rw2.go.txt", tdir.DirPath+"/rw.go").Run()
cv.Convey("Given bambam generated go bindings: with a struct within a struct", t, func() {
cv.Convey("then we should be able to write to disk, and read back the same structure", func() {
cv.So(err, cv.ShouldEqual, nil)

tdir.MoveTo()
Expand Down

0 comments on commit 917a8a3

Please sign in to comment.