Skip to content

Commit 046b3ca

Browse files
committed
CI: test -play
1 parent ed42354 commit 046b3ca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/go.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,13 @@ jobs:
3232

3333
- name: Run tests
3434
run: go test -v ./...
35+
36+
- name: Test -play
37+
run: |
38+
out="$(./goeval -play 'fmt.Println(time.Now())')"
39+
expected='2009-11-10 23:00:00 +0000 UTC m=+0.000000001'
40+
if [ "$out" != "$expected" ]; then
41+
echo "got: $out"
42+
echo "expected: $expected"
43+
exit 1
44+
fi

0 commit comments

Comments
 (0)