Skip to content

hschema-aeson test suite depends on ordering returned from aeson #11

@sternenseemann

Description

@sternenseemann
Running 1 test suites...
Test suite hschema-aeson-test: RUNNING...
+++ OK, passed 100 tests.

toJsonSerializer
  should generate valid JSON FAILED [1]
  should parse the given JSON

Failures:

  test/Test/Schema/JSON.hs:35:7: 
  1) toJsonSerializer should generate valid JSON
       expected: "{\"roles\":[{\"user\":{}},{\"admin\":{\"department\":\"bar\",\"subordinateCount\":4}}],\"name\":\"foo\",\"birthDate\":12}"
        but got: "{\"roles\":[{\"user\":{}},{\"admin\":{\"subordinateCount\":4,\"department\":\"bar\"}}],\"name\":\"foo\",\"birthDate\":12}"

  To rerun use: --match "/toJsonSerializer/should generate valid JSON/"

Randomized with seed 372598237

Finished in 0.0009 seconds
2 examples, 1 failure
Test suite hschema-aeson-test: FAIL
Test suite logged to: dist/test/hschema-aeson-0.0.1.1-hschema-aeson-test.log
0 of 1 test suites (0 of 1 test cases) passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions