Added acceptance test

This commit is contained in:
mfarah 2015-09-28 13:26:02 +10:00
parent 0c5188acb5
commit 404746ab22

View File

@ -1,3 +1,13 @@
#!/bin/bash
gofmt -w .
golint
go test
# acceptance test
X=$(go run yaml.go sample.yaml b.c)
if [ $X != 2 ]
then
echo "Failed acceptance test: expected 2 but was $X"
fi