Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ********************
- TEST 1: factorial.py
- ********************
- PROGRAM INPUT:
- 5
- ----
- Python error output:
- <empty>
- ----
- Interpret error output:
- <empty>
- ----
- Python output:
- Zadejte cislo pro vypocet faktorialu:
- Vysledek je: 120
- ----
- Interpret output:
- Zadejte cislo pro vypocet faktorialu:
- Vysledek je:120
- ----
- ERROR: Python and IFJ interprets have different outputs.
- ********************
- TEST 2: factorial.py
- ********************
- PROGRAM INPUT:
- 2
- ----
- Python error output:
- <empty>
- ----
- Interpret error output:
- <empty>
- ----
- Python output:
- Zadejte cislo pro vypocet faktorialu:
- Vysledek je: 2
- ----
- Interpret output:
- Zadejte cislo pro vypocet faktorialu:
- Vysledek je:2
- ----
- ERROR: Python and IFJ interprets have different outputs.
- ********************
- TEST 3: factorial2.py
- ********************
- PROGRAM INPUT:
- 5
- ----
- Interpret error output:
- 148.28-30: syntax error, unexpected ID, expecting END
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [0].
- ********************
- TEST 4: factorial2.py
- ********************
- PROGRAM INPUT:
- 2
- ----
- Interpret error output:
- 148.28-30: syntax error, unexpected ID, expecting END
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [0].
- ********************
- TEST 5: buildin.py
- ********************
- PROGRAM INPUT:
- abcedfgh
- abcdefgh
- ----
- Compiler error output:
- String and numeric operations unsupported. Line 4
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
- ********************
- TEST 6: buildin.py
- ********************
- PROGRAM INPUT:
- abcdefgh
- ----
- Compiler error output:
- String and numeric operations unsupported. Line 4
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
- ********************
- TEST 7: factorial.py
- ********************
- PROGRAM INPUT:
- a
- ----
- SUCCESS
- ********************
- TEST 8: factorial.py
- ********************
- SUCCESS
- ********************
- TEST 9: factorial2.py
- ********************
- PROGRAM INPUT:
- a
- ----
- Interpret error output:
- 148.28-30: syntax error, unexpected ID, expecting END
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [53, 4].
- ********************
- TEST 10: factorial2.py
- ********************
- Interpret error output:
- 148.28-30: syntax error, unexpected ID, expecting END
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [53, 4].
- ********************
- TEST 11: badcomment.py
- ********************
- SUCCESS
- ********************
- TEST 12: baddot.py
- ********************
- SUCCESS
- ********************
- TEST 13: badchars.py
- ********************
- SUCCESS
- ********************
- TEST 14: badcomment2.py
- ********************
- SUCCESS
- ********************
- TEST 15: badexponent.py
- ********************
- SUCCESS
- ********************
- TEST 16: badindent2.py
- ********************
- SUCCESS
- ********************
- TEST 17: badstring.py
- ********************
- SUCCESS
- ********************
- TEST 18: emptyexponent.py
- ********************
- SUCCESS
- ********************
- TEST 19: morezeroes.py
- ********************
- SUCCESS
- ********************
- TEST 20: nonasci.py
- ********************
- SUCCESS
- ********************
- TEST 21: badfunction5.py
- ********************
- SUCCESS
- ********************
- TEST 22: badindent.py
- ********************
- SUCCESS
- ********************
- TEST 23: badfunction.py
- ********************
- SUCCESS
- ********************
- TEST 24: badfunction2.py
- ********************
- SUCCESS
- ********************
- TEST 25: badfunction3.py
- ********************
- SUCCESS
- ********************
- TEST 26: badfunction4.py
- ********************
- SUCCESS
- ********************
- TEST 27: badfunction7.py
- ********************
- SUCCESS
- ********************
- TEST 28: badindent3.py
- ********************
- SUCCESS
- ********************
- TEST 29: badwhile.py
- ********************
- SUCCESS
- ********************
- TEST 30: badwhile2.py
- ********************
- SUCCESS
- ********************
- TEST 31: badwhile3.py
- ********************
- SUCCESS
- ********************
- TEST 32: badif.py
- ********************
- SUCCESS
- ********************
- TEST 33: badif2.py
- ********************
- SUCCESS
- ********************
- TEST 34: badif3.py
- ********************
- SUCCESS
- ********************
- TEST 35: badcall.py
- ********************
- Compiler error output:
- Unknown function call on line: 3
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: 3 Expected: [2].
- ********************
- TEST 36: badcall2.py
- ********************
- Compiler error output:
- Unknown function call on line: 3
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: 3 Expected: [2].
- ********************
- TEST 37: badcall3.py
- ********************
- SUCCESS
- ********************
- TEST 38: badexpr.py
- ********************
- SUCCESS
- ********************
- TEST 39: badexpr2.py
- ********************
- SUCCESS
- ********************
- TEST 40: badexpr3.py
- ********************
- SUCCESS
- ********************
- TEST 41: badexpr4.py
- ********************
- SUCCESS
- ********************
- TEST 42: badexpr5.py
- ********************
- SUCCESS
- ********************
- TEST 43: badreturn.py
- ********************
- SUCCESS
- ********************
- TEST 44: badvar3.py
- ********************
- Compiler error output:
- Variable 'a' on line 5. Function with this name already defined on line 1
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [3].
- ********************
- TEST 45: badfunction8.py
- ********************
- SUCCESS
- ********************
- TEST 46: badfunction9.py
- ********************
- SUCCESS
- ********************
- TEST 47: badfunction10.py
- ********************
- SUCCESS
- ********************
- TEST 48: badcall4.py
- ********************
- SUCCESS
- ********************
- TEST 49: badcall5.py
- ********************
- SUCCESS
- ********************
- TEST 50: badfunction6.py
- ********************
- SUCCESS
- ********************
- TEST 51: badtype.py
- ********************
- SUCCESS
- ********************
- TEST 52: badtype2.py
- ********************
- SUCCESS
- ********************
- TEST 53: badtype3.py
- ********************
- SUCCESS
- ********************
- TEST 54: badtype4.py
- ********************
- SUCCESS
- ********************
- TEST 55: badtype5.py
- ********************
- SUCCESS
- ********************
- TEST 56: badtype6.py
- ********************
- SUCCESS
- ********************
- TEST 57: badtype7.py
- ********************
- SUCCESS
- ********************
- TEST 58: badtype8.py
- ********************
- SUCCESS
- ********************
- TEST 59: badtype9.py
- ********************
- SUCCESS
- ********************
- TEST 60: zerodiv.py
- ********************
- SUCCESS
- ********************
- TEST 61: zerodiv2.py
- ********************
- SUCCESS
- ********************
- TEST 62: badbuildin.py
- ********************
- Interpret error output:
- 1.1: syntax error, unexpected END, expecting HEADER
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [53, 4].
- ********************
- TEST 63: badbuildin2.py
- ********************
- Interpret error output:
- Error at line: 32
- Label does not exist!
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [53, 4].
- ********************
- TEST 64: badbuildin3.py
- ********************
- Interpret error output:
- Error at line: 32
- Label does not exist!
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [53, 4].
- ********************
- TEST 65: badbuildin6.py
- ********************
- Interpret error output:
- Symbol GF@nil not found!
- Error at line: 24
- Symbol is undefined!
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 54 Expected: [53, 4].
- ********************
- TEST 66: badbuildin7.py
- ********************
- Interpret error output:
- Error at line: 24
- Label does not exist!
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [53, 4].
- ********************
- TEST 67: badbuildin4.py
- ********************
- Interpret error output:
- Symbol GF@nil not found!
- Error at line: 20
- Symbol is undefined!
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 54 Expected: [53, 4].
- ********************
- TEST 68: badbuildin5.py
- ********************
- Interpret error output:
- Error at line: 28
- Label does not exist!
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [53, 4].
- ********************
- TEST 69: badbuildin8.py
- ********************
- Interpret error output:
- Error at line: 24
- Label does not exist!
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [58, 6, 4].
- ********************
- TEST 70: emptyprogram.py
- ********************
- Interpret error output:
- 1.1: syntax error, unexpected END, expecting HEADER
- ----
- ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [0].
- ********************
- TEST 71: specstring.py
- ********************
- Compiler error output:
- <empty>
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: -6 Expected: [0].
- ********************
- TEST 72: lotofparams.py
- ********************
- SUCCESS
- ********************
- TEST 73: longidentif.py
- ********************
- Compiler error output:
- <empty>
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: -11 Expected: [0].
- ********************
- TEST 74: geometry.py
- ********************
- PROGRAM INPUT:
- abc
- ----
- Compiler error output:
- String and numeric operations unsupported. Line 7
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
- ********************
- TEST 75: geometry.py
- ********************
- PROGRAM INPUT:
- square
- 5
- rectangle
- 5.4
- 10.4
- ----
- Compiler error output:
- String and numeric operations unsupported. Line 7
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
- ********************
- TEST 76: geometry.py
- ********************
- PROGRAM INPUT:
- circle
- 4.7
- triangle
- 1.1
- 2.2
- 2.2
- 2.8
- square
- 0
- ----
- Compiler error output:
- String and numeric operations unsupported. Line 7
- ----
- ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement