From 404746ab22d968db7b78b1253ef25bdda96e5fb7 Mon Sep 17 00:00:00 2001 From: mfarah Date: Mon, 28 Sep 2015 13:26:02 +1000 Subject: [PATCH] Added acceptance test --- precheckin.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/precheckin.sh b/precheckin.sh index cde16bdd..a63a19b8 100755 --- a/precheckin.sh +++ b/precheckin.sh @@ -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