Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sydtest 0.18.0.0 #7527

Open
bergmark opened this issue Sep 29, 2024 · 1 comment
Open

sydtest 0.18.0.0 #7527

bergmark opened this issue Sep 29, 2024 · 1 comment

Comments

@bergmark
Copy link
Member

@NorfairKing sydtest-aeson 0.2.0.0 doesn't compile:

src/Test/Syd/Aeson.hs:50:23: error: [GHC-83865]
    • Couldn't match expected type ‘Assertion’
                  with actual type ‘IO Assertion’
    • In the first argument of ‘Context’, namely
        ‘(textsNotEqualButShouldHaveBeenEqual
            (decodeUtf8 (LB.toStrict (encodePretty actual)))
            (decodeUtf8 (LB.toStrict (encodePretty expected))))’
      In the first argument of ‘Just’, namely
        ‘(Context
            (textsNotEqualButShouldHaveBeenEqual
               (decodeUtf8 (LB.toStrict (encodePretty actual)))
               (decodeUtf8 (LB.toStrict (encodePretty expected))))
            (goldenContext fp))’
      In the expression:
        Just
          (Context
             (textsNotEqualButShouldHaveBeenEqual
                (decodeUtf8 (LB.toStrict (encodePretty actual)))
                (decodeUtf8 (LB.toStrict (encodePretty expected))))
             (goldenContext fp))
   |
50 |                     ( textsNotEqualButShouldHaveBeenEqual
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
@bergmark
Copy link
Member Author

also sydtest-hspec 0.4.0.2 @NorfairKing

src/Test/Syd/Hspec.hs:162:106: error: [GHC-88464]
    Data constructor not in scope:
      NotEqualButShouldHaveBeenEqual :: String -> String -> e0
    Suggested fix:
      Perhaps use one of these:
        variable ‘mkNotEqualButShouldHaveBeenEqual’ (imported from Test.Syd),
        variable ‘textsNotEqualButShouldHaveBeenEqual’ (imported from Test.Syd),
        ‘EqualButShouldNotHaveBeenEqual’ (imported from Test.Syd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant