Created
December 16, 2017 09:43
-
-
Save ramsesoriginal/8f5ecd2d1a97774bfbd048650be3cd0c to your computer and use it in GitHub Desktop.
PA07 Testaufrufe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PPUPP | |
PPPPP | |
PPUPP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPPPUPPPUP | |
PUUPPPUUUP | |
PPPUUUPPPP | |
UUPPPPPUUP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''testStart | |
testCategory Tests aus der Angabe | |
testName Weg Findbar | |
maxtime 3 | |
expectedResult 11 | |
call abstand((0, 9), (2, 2)) | |
testName Weg Nicht Findbar | |
maxtime 3 | |
expectedResult -1 | |
call abstand((0, 9), (0, 7)) | |
testCategory Tests auf kleinem Feld | |
testName Diagonal Runter | |
maxtime 3 | |
expectedResult 6 | |
call abstand((0, 0), (2, 4), "klein.dat") | |
testName Diagonal Rauf | |
maxtime 3 | |
expectedResult 6 | |
call abstand((2, 4), (0, 0), "klein.dat") | |
testName Ziel = Start | |
maxtime 3 | |
expectedResult 0 | |
call abstand((1, 2), (1, 2), "klein.dat") | |
endTest''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("\n Tests aus der Angabe") | |
print(" Weg Findbar") | |
print("erwartet: "," 11") | |
print( abstand((0, 9), (2, 2))) | |
print(" Weg Nicht Findbar") | |
print("erwartet: "," -1") | |
print( abstand((0, 9), (0, 7))) | |
print("\n Tests auf kleinem Feld") | |
print(" Diagonal Runter") | |
print("erwartet: "," 6") | |
print( abstand((0, 0), (2, 4), "klein.dat")) | |
print(" Diagonal Rauf") | |
print("erwartet: "," 6") | |
print( abstand((2, 4), (0, 0), "klein.dat")) | |
print(" Ziel = Start") | |
print("erwartet: "," 0") | |
print( abstand((1, 2), (1, 2), "klein.dat")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment