Re: Revision 417 -- tests are broke
- Posted by CChris <christian.cuvier at agr?culture.go?v.fr> May 08, 2008
- 608 views
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 > > <a > href="http://www.openeuphoria.org/EUforum/m20654.html">http://www.openeuphoria.org/EUforum/m20654.html</a> > > > > 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