Re: Revision 417 -- tests are broke

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:
> 
> CChris wrote:
> > 
> > 
> > As I mentioned earlier, it depends on whether dup() is supposed to duplicate
> > the last pushed value or the top(). I don't remember you replied to this.
> > The second failure is caused by the same issue, since the stack is not in
> > the
> > expected shape.
> > 
> > CChris
> > PS: Looks like a test for the tests is needed smile
> 
> <a
> href="http://www.openeuphoria.org/EUforum/m20654.html">http://www.openeuphoria.org/EUforum/m20654.html</a>
> 
> smile
> 
> dup() should duplicate the top item. Whenever working with a stack, almost
> everything
> happens to the top item. swap() for instance, swaps the top item with the one
> below it. drop() (pop()) removes the top item, etc...
> 
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>

Ok, reverting the changes to stack.e then.

CChris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu