Skip to content

Commit

Permalink
fixed compileTimeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
erks committed Dec 2, 2012
1 parent afc423f commit d55e6e1
Show file tree
Hide file tree
Showing 9 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 modified DS.pyc
Binary file not shown.
Binary file modified main.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 d55e6e1

Please sign in to comment.