Skip to content

Commit

Permalink
Adding reverse test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikmota committed Mar 3, 2024
1 parent dea45ed commit d16bb40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/misc.rye
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,12 @@ section "Functions that change values in-place"
}
group "reverse!"
mold\nowrap ?append!
{ { word } { object } }
{ { word } { object } { list } }
{
equal { b: { 4 1 7 2 } , reverse! b , b } { 2 7 1 4 } ; TOTHINK -- should it accept tagword or block directly?
equal { reverse! list { 1 2 3 } } list { 3 2 1 }
equal { reverse! list { 1 } } list { 1 }
equal { reverse! list { } } list { }
}

}
Expand Down

0 comments on commit d16bb40

Please sign in to comment.