Hi all,
I tried the rule vector.indices in my test code:
#--------------------------------------------------------------------------
import container ;
import "class" ;
import assert ;
v1 = [ class.new vector 68 500 999 36 72 ] ;
assert.result 1 5 : $(v1).indices ;
#--------------------------------------------------------------------------
The result is not "1 2 3 4 5". so the vector.equal rule just check first and last elements.
#-------------------------------------------------------------------------------------
--- container.jam.o 2008-06-08 02:04:15.000000000 +0800
+++ container.jam 2008-06-08 02:04:48.000000000 +0800
@@ -206,7 +206,7 @@
if ! [ empty ]
{
local size = [ size ] ;
- return [ range 1 : $(size) ] $(size) ;
+ return [ range 1 $(size) ] ;
}
}
#-------------------------------------------------------------------------------------
Best regards,
Rick Yang