mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Added acceptance test
This commit is contained in:
parent
0c5188acb5
commit
404746ab22
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user