Skip to content

Inconsistent Syntax for Unit Test Attributes in Codebase #4096

Open
@yegor256

Description

@yegor256

Now, our unit tests are objects, while in reality they are not. How about we introduce a new syntax for test "attributes":

[n] > fibo
  if. > @
    n.lt 2
    1
    plus.
      fibo (n.minus 1)
      fibo (n.minus 2)

  eq. +> fibo-5th-equals-to-seven
    7
    fibo 5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions