mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
4dfa5ccb6e
In Crystal 1.6, a segfault would occur in the spec spec/spectator/mocks/lazy_double_spec.cr:238 I suspect this is a Crystal bug of some kind, but can't reduce it. The methods produced by `method_missing` don't have a return type including Symbol. Symbol is excluded from the union of return types (Int32 | String | Nil). The program segfaults when calling a method on the actual value, which is a symbol. It ultimately crashes when producing a failure message, which indicates the value it tested doesn't equal the expected value (a symbol of the same value). Avoid this issue by preventing stubs on undefined/untyped methods. |
||
---|---|---|
.. | ||
dsl/mocks | ||
mocks | ||
anything_spec.cr | ||
block_spec.cr | ||
lazy_spec.cr | ||
lazy_wrapper_spec.cr | ||
system_exit_spec.cr | ||
value_spec.cr | ||
wrapper_spec.cr |