mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 02:57:52 +08:00
Remove some duplicate test cases.
This commit is contained in:
parent
5649db68f6
commit
d9bdd3b308
|
@ -76,12 +76,6 @@ var valueTests = []evalTest{
|
|||
{inc2,put2}=(f); $put2; $inc2; $put2`,
|
||||
want{out: strs("0", "1", "0", "1")}},
|
||||
|
||||
// fn.
|
||||
{"fn f [x]{ put x=$x'.' }; f lorem; f ipsum",
|
||||
want{out: strs("x=lorem.", "x=ipsum.")}},
|
||||
// return.
|
||||
{"fn f []{ put a; return; put b }; f", want{out: strs("a")}},
|
||||
|
||||
// Rest argument.
|
||||
{"[x @xs]{ put $x $xs } a b c",
|
||||
want{out: []Value{String("a"), NewList(String("b"), String("c"))}}},
|
||||
|
|
Loading…
Reference in New Issue
Block a user