Skip to content

Commit 404746a

Browse files
author
mfarah
committed
Added acceptance test
1 parent 0c5188a commit 404746a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

precheckin.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
#!/bin/bash
2+
13
gofmt -w .
24
golint
35
go test
6+
7+
# acceptance test
8+
X=$(go run yaml.go sample.yaml b.c)
9+
10+
if [ $X != 2 ]
11+
then
12+
echo "Failed acceptance test: expected 2 but was $X"
13+
fi

0 commit comments

Comments
 (0)