Skip to content

[TM-119] Add a test for list typechecking

Ivan Gromakovskii requested to merge gromak/tm119-list-typechecking-test into master

Description

Problem: we used to have in ValueSeq typechecking as a list. We typecheck items from left to right and put the first item to the end. If we don't reverse this typechecked list, the items will go in the wrong order. Unfortunately we didn't have a regression test for this behavior when we fixed this bug.

Solution: add a simple property test for typeVerifyValue.

Related issue(s)

https://issues.serokell.io/issue/TM-119

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Ivan Gromakovskii

Merge request reports