Skip to content

Commit

Permalink
errors
Browse files Browse the repository at this point in the history
  • Loading branch information
varunrau committed Dec 2, 2012
2 parents 909e5a7 + d55e6e1 commit ce80c83
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CompileTimeTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
file = open(newFileName, "w")

for line in fileinput.input(testFile): #replace SD() with a d.s.
line = line.replace("SD()", "SD(" + str(dataStructures[i]) + ", True)")
#line = line.replace("SD()", "SD(" + str(dataStructures[i]) + ", True)")
line = line.replace("SD()", "SD(True, " + str(dataStructures[i]) + ")")
file.write(line)

file.close()
Expand Down
3 changes: 2 additions & 1 deletion CompileTimeTest.py~
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ for i in range(len(dataStructures)): #loop through dataStructures
file = open(newFileName, "w")

for line in fileinput.input(testFile): #replace SD() with a d.s.
line = line.replace("SD()", "SD(" + str(dataStructures[i]) + ", True)")
#line = line.replace("SD()", "SD(" + str(dataStructures[i]) + ", True)")
line = line.replace("SD()", "SD(True, " + str(dataStructures[i] + ")"))
file.write(line)

file.close()
Expand Down
Binary file removed DS.pyc
Binary file not shown.
Binary file removed arr.pyc
Binary file not shown.
Binary file removed bst.pyc
Binary file not shown.
Binary file removed btree.pyc
Binary file not shown.
Binary file removed main.pyc
Binary file not shown.
Binary file removed maxheap.pyc
Binary file not shown.
Binary file removed minheap.pyc
Binary file not shown.
Binary file removed sarr.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion test_compile_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def test():

print(str(s_data.get(0)) + " should be 0")

s_data = SD(0, True)
s_data = SD(True, 0)
test()
2 changes: 1 addition & 1 deletion test_compile_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def test():

print(str(s_data.get(0)) + " should be 0")

s_data = SD(1, True)
s_data = SD(True, 1)
test()
2 changes: 1 addition & 1 deletion test_compile_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def test():

print(str(s_data.get(0)) + " should be 0")

s_data = SD(2, True)
s_data = SD(True, 2)
test()
2 changes: 1 addition & 1 deletion test_compile_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def test():

print(str(s_data.get(0)) + " should be 0")

s_data = SD(3, True)
s_data = SD(True, 3)
test()
2 changes: 1 addition & 1 deletion test_compile_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def test():

print(str(s_data.get(0)) + " should be 0")

s_data = SD(4, True)
s_data = SD(True, 4)
test()

0 comments on commit ce80c83

Please sign in to comment.