eclipse-archived / ceylon-sdk

Standard platform modules belonging to the Ceylon SDK
http://www.ceylon-lang.org
Apache License 2.0
72 stars 60 forks source link

ceylon.test: support parametrized tests #159

Closed thradec closed 8 years ago

thradec commented 10 years ago

see discussion in #158

thradec commented 8 years ago

Rebased and merged to master, via facc616 and ceylon/ceylon-ide-eclipse@2c68a85.

Recapitulation:

Example:

shared {[Integer, Integer]*} fibonnaciNumbers => {[1, 1], [2, 1], [3, 2], [4, 3], [5, 5], [6, 8] ...};

test
parameters(`value fibonnaciNumbers`)
shared void shouldCalculateFibonacciNumber(Integer input, Integer result)
    => assert(fibonacciNumber(input) == result);

I'm going to close this issue, for any improvements or new usecases, please open new issue.

luolong commented 8 years ago

:+1: Good work!