Skip to content

Commit

Permalink
failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed Sep 13, 2023
1 parent 6733a32 commit ac23d69
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main

- name: Cache PureScript dependencies
uses: actions/cache@v2
# This cache uses the .dhall files to know when it should reinstall
# and rebuild packages. It caches both the installed packages from
# the `.spago` directory and compilation artifacts from the `output`
# directory. When restored the compiler will rebuild any files that
# have changed. If you do not want to cache compiled output, remove
# the `output` path.
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: |
.spago
output
- run: spago -x test.dhall build

- run: spago -x test.dhall test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.*
!/.gitignore
!/.github
!/.eslintrc.json
!/.travis.yml
/bower_components/
Expand Down
4 changes: 4 additions & 0 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ main = do
quickCheck $ fromString "ABCD" Hex === Just (withOctets pack [0xAB, 0xCD])
-- this line is commented out as for invalid input result is `pack []` and shuold be fixed later
-- quickCheck $ fromString "LOL" Hex === Nothing

log "utf8"
quickCheck $ \(s :: String) -> fromUTF8 (toUTF8 s) === s


where
subL a b = a - runQuotient b
Expand Down

0 comments on commit ac23d69

Please sign in to comment.