NonlinearFruit / nuUnit

Testing framework for Nushell
0 stars 0 forks source link

Parameterized tests #5

Open NonlinearFruit opened 5 months ago

NonlinearFruit commented 5 months ago

Being able to say

def "test addition works" [a b expected] {
  use std assert
  assert equal $expected ($a + $b)
}

With parameters

[
  [1 1 2]
  [-1 -1 -2]
  [.1 .1 .2]
]