Files
harbour-core/contrib/hbnf/tests/aading.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

41 lines
1012 B
Plaintext

#require "hbnf"
PROCEDURE Main()
LOCAL aList1, aList2, var0, nstart, nstop, nelapsed, nCtr
CLS
? "TEST TO DEMONSTRATE EXAMPLES OF FT_AADDITION"
?
aList1 := { "apple", "orange", "pear" }
aList2 := { "apple ", "banana", "PEAR" }
? "aList1 : "
AEval( aList1, {| x | QQOut( x + "," ) } )
?
? "aList2 : "
AEval( aList2, {| x | QQOut( x + "," ) } )
?
nstart := Seconds()
FOR nCtr := 1 TO 100
var0 := ft_AAddition( aList1, aList2 )
NEXT
nstop := Seconds()
nelapsed := nstop - nstart
? "time for 100 merges:", nelapsed
? PadR( "ft_AAddition( aList1, aList2 ) ->", 44 )
AEval( var0, {| x | QQOut( x + "," ) } )
?
var0 := ft_AAddition( aList1, aList2, , .F. )
? PadR( "ft_AAddition( aList1, aList2, , .F. ) ->", 44 )
AEval( var0, {| x | QQOut( x + "," ) } )
?
var0 := ft_AAddition( aList1, aList2, .F., .F. )
? PadR( "ft_AAddition( aList1, aList2, .F., .F. ) ->", 44 )
AEval( var0, {| x | QQOut( x + "," ) } )
?
RETURN