This example illustrates an issue with Sydtest. It purposefully generates test failures where the diffs between actual and expected outputs are large. The issue is that generating these diffs is very slow, which is a usability issue for Sydtest.
Steps to reproduce:
Run nix flake check.
Expected behavior:
The test suite quickly outputs a result.
Actual behavior:
The test suite takes a long time to output a result and consumes a lot of memory.
Notes
Try reducing or increasing the replication factors in test/Spec/LargeDiffsSpec.hs. Increasing the replication factors by a factor of two or more results in outrageous memory usage and runtime.
One can verify that the bottleneck is not in the building of the large Texts using pack and replicate, by commenting out the tests other than quickly processes a large true comparison, in which case the test suite should run very fast.