Skip to content

Commit

Permalink
build slightly more robust testing framework
Browse files Browse the repository at this point in the history
  • Loading branch information
V-FEXrt committed Nov 9, 2023
1 parent 1ff8546 commit 4c6c0f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
- name: Check formatting
run: wake-format --dry-run --auto

- name: Run basic test
run: wake --in query -x 'single 5'
- name: Run tests
run: ./tests/test.sh
10 changes: 10 additions & 0 deletions tests/query.wake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package tests

from wake import _
from query import _

export def runQueryTests _ =
require 4, Nil = single 4
else failWithError "Unexpected value for single"

Pass Unit
5 changes: 5 additions & 0 deletions tests/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#! /bin/bash

set -e

wake --in tests runQueryTests

0 comments on commit 4c6c0f3

Please sign in to comment.