Changeset 2105


Ignore:
Timestamp:
May 16, 2012, 12:53:10 PM (7 years ago)
Author:
ksherdy
Message:

Updated test files generator script to prepend delimeter character.

Location:
trunk/symbol_table/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/test/gen_test_file.py

    r2098 r2105  
    4444        max_gap = '1'
    4545
    46         for lgth in range(lb, ub):
     46        for lgth in range(lb, ub+1):
    4747                L_O_U = "[" + str(lgth) + "," + str(O) + "," + str(U) + "]"
    4848                args.append(L_O_U)
     
    6767            sys.exit()
    6868
    69         min_lgth = 1
    70         max_lgth = 20
    71         occurences = 1
    72         unique = 1
     69        min_lgth = 4
     70        max_lgth = 4
     71        occurences = 100
     72        unique = 10
    7373
    7474        gen_test_file(min_lgth,max_lgth,occurences,unique)
  • trunk/symbol_table/test/st_test_file_generator.py

    r2095 r2105  
    5757    def __init__(self,base_filename):   
    5858        self.test_file = open(base_filename+".test", 'w')
     59        self.test_file.write(delim)
    5960       
    6061    def appendUniqueSymbolAndGap(self, symbol_string, gap):
Note: See TracChangeset for help on using the changeset viewer.