NorfairKing / sydtest

A modern testing framework for Haskell with good defaults and advanced testing features.
113 stars 25 forks source link

use isPrefixOf instead of isInfixOf for shouldStartWith #32

Closed joel-bach closed 2 years ago

joel-bach commented 2 years ago

This fixes https://github.com/NorfairKing/sydtest/issues/31.

I was not able to run the tests as to https://github.com/NorfairKing/sydtest/blob/373a72f6763e2ebf90e6a9de137349e1568540a8/CONTRIBUTING.md because the compilation of safe-coloured-text-terminfo fails with (and I am unsure how to fix it):

safe-coloured-text-terminfo> /usr/bin/ld.gold: error: cannot find -ltinfo
safe-coloured-text-terminfo> collect2: error: ld returned 1 exit status
safe-coloured-text-terminfo> `gcc' failed in phase `Linker'. (Exit code: 1)

nix-build ci.nix works. Could you check if the tests are succeeding on your end or do you have a hint on how to fix this error?

Stack version: Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4

NorfairKing commented 2 years ago

I'll check when I get home, but we also need to bump the version and add this to the changelog so I can make a release.

joel-bach commented 2 years ago

If someone gets here because of the compilation error, the following Stackoverflow post fixed it for me: https://stackoverflow.com/questions/21137879/link-error-cannot-find-ltinfo-on-ubuntu-12-04-on-a-32-bit-arm-processor