From e4c2ecd0e9f62683303b7ae1dab740de93090ae0 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Wed, 29 Jul 2020 16:04:04 +0000 Subject: [PATCH] include output in examples --- examples/incr/convey.output | 8 ++++++++ examples/incr/run-all | 5 +++++ examples/incr/std.output | 6 ++++++ examples/incr/tea.output | 2 ++ 4 files changed, 21 insertions(+) create mode 100644 examples/incr/convey.output create mode 100755 examples/incr/run-all create mode 100644 examples/incr/std.output create mode 100644 examples/incr/tea.output diff --git a/examples/incr/convey.output b/examples/incr/convey.output new file mode 100644 index 0000000..5b6e03f --- /dev/null +++ b/examples/incr/convey.output @@ -0,0 +1,8 @@ +. +1 total assertion + +.. +3 total assertions + +PASS +ok github.com/jordanorelli/tea/examples/incr 0.002s diff --git a/examples/incr/run-all b/examples/incr/run-all new file mode 100755 index 0000000..baa4c18 --- /dev/null +++ b/examples/incr/run-all @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +go test 2>&1 | tee tea.output +go test -tags std 2>&1 | tee std.output +go test -tags convey 2>&1 | tee convey.output diff --git a/examples/incr/std.output b/examples/incr/std.output new file mode 100644 index 0000000..cdada04 --- /dev/null +++ b/examples/incr/std.output @@ -0,0 +1,6 @@ +--- FAIL: TestTwice (0.00s) + --- FAIL: TestTwice/increment#01 (0.00s) + std_test.go:34: expected x to be 2, is 3 instead +FAIL +exit status 1 +FAIL github.com/jordanorelli/tea/examples/incr 0.001s diff --git a/examples/incr/tea.output b/examples/incr/tea.output new file mode 100644 index 0000000..c15b26f --- /dev/null +++ b/examples/incr/tea.output @@ -0,0 +1,2 @@ +PASS +ok github.com/jordanorelli/tea/examples/incr 0.001s