From d55e6e1939a1279f4faaa0b19233709138234f9a Mon Sep 17 00:00:00 2001 From: erks Date: Sat, 1 Dec 2012 20:52:53 -0800 Subject: [PATCH] fixed compileTimeTest --- CompileTimeTest.py | 3 ++- CompileTimeTest.py~ | 3 ++- DS.pyc | Bin 517 -> 512 bytes main.pyc | Bin 3219 -> 3287 bytes test_compile_0.py | 2 +- test_compile_1.py | 2 +- test_compile_2.py | 2 +- test_compile_3.py | 2 +- test_compile_4.py | 2 +- 9 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CompileTimeTest.py b/CompileTimeTest.py index d8eb9f7..971cda3 100755 --- a/CompileTimeTest.py +++ b/CompileTimeTest.py @@ -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() diff --git a/CompileTimeTest.py~ b/CompileTimeTest.py~ index d8eb9f7..d846f8b 100755 --- a/CompileTimeTest.py~ +++ b/CompileTimeTest.py~ @@ -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() diff --git a/DS.pyc b/DS.pyc index 8e77627c2019f430f3b19fa2282b506308a23277..2193f72f0edd51d14fe41342899670e1a16a5d0f 100644 GIT binary patch delta 31 ncmZo=X<%Vv{>;m@_s&GN8ctS*C=Q08U=6m3-HIDGhA;vEjVcKQ delta 34 pcmZo*X=Pz!{>;n8c5@E)7 z8B$mnS{N9b85km?*f&OTu`mixPGvdCs5@DobqAxt%G1-%S7Nhm# zmz*+_INBNQCU8F?l@{W^|jpnX8l0bFwY>K}OEW|GCu|StqOUs7%h{iRR$|+Q`Gi#R!B<0F%ullmGw# diff --git a/test_compile_0.py b/test_compile_0.py index b763e5b..7d2a5c3 100644 --- a/test_compile_0.py +++ b/test_compile_0.py @@ -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() diff --git a/test_compile_1.py b/test_compile_1.py index 3019031..aad7a41 100644 --- a/test_compile_1.py +++ b/test_compile_1.py @@ -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() diff --git a/test_compile_2.py b/test_compile_2.py index a40b404..f71b2c9 100644 --- a/test_compile_2.py +++ b/test_compile_2.py @@ -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() diff --git a/test_compile_3.py b/test_compile_3.py index 2b02228..4778ea7 100644 --- a/test_compile_3.py +++ b/test_compile_3.py @@ -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() diff --git a/test_compile_4.py b/test_compile_4.py index d169ef2..dd8887f 100644 --- a/test_compile_4.py +++ b/test_compile_4.py @@ -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()