Sure! You can do something like
assertEqual “This will return Right” True ( isRight result )
https://hackage.haskell.org/package/tasty-hunit-0.10.0.2/docs/Test-Tasty-HUnit.html#v:assertEqual
https://hackage.haskell.org/package/base-4.14.0.0/docs/Data-Either.html#v:isRight
CLICK HERE to find out more related problems solutions.