Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ********************
  3. TEST 1: factorial.py
  4. ********************
  5.  
  6. PROGRAM INPUT:
  7. 5
  8. ----
  9. Python error output:
  10. <empty>
  11. ----
  12. Interpret error output:
  13. <empty>
  14. ----
  15. Python output:
  16. Zadejte cislo pro vypocet faktorialu:
  17. Vysledek je: 120
  18.  
  19.  
  20. ----
  21. Interpret output:
  22. Zadejte cislo pro vypocet faktorialu:
  23. Vysledek je:120
  24.  
  25.  
  26. ----
  27. ERROR: Python and IFJ interprets have different outputs.
  28.  
  29. ********************
  30. TEST 2: factorial.py
  31. ********************
  32.  
  33. PROGRAM INPUT:
  34. 2
  35. ----
  36. Python error output:
  37. <empty>
  38. ----
  39. Interpret error output:
  40. <empty>
  41. ----
  42. Python output:
  43. Zadejte cislo pro vypocet faktorialu:
  44. Vysledek je: 2
  45.  
  46.  
  47. ----
  48. Interpret output:
  49. Zadejte cislo pro vypocet faktorialu:
  50. Vysledek je:2
  51.  
  52.  
  53. ----
  54. ERROR: Python and IFJ interprets have different outputs.
  55.  
  56. ********************
  57. TEST 3: factorial2.py
  58. ********************
  59.  
  60. PROGRAM INPUT:
  61. 5
  62. ----
  63. Interpret error output:
  64. 148.28-30: syntax error, unexpected ID, expecting END
  65.  
  66. ----
  67. ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [0].
  68.  
  69. ********************
  70. TEST 4: factorial2.py
  71. ********************
  72.  
  73. PROGRAM INPUT:
  74. 2
  75. ----
  76. Interpret error output:
  77. 148.28-30: syntax error, unexpected ID, expecting END
  78.  
  79. ----
  80. ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [0].
  81.  
  82. ********************
  83. TEST 5: buildin.py
  84. ********************
  85.  
  86. PROGRAM INPUT:
  87. abcedfgh
  88. abcdefgh
  89. ----
  90. Compiler error output:
  91. String and numeric operations unsupported. Line 4
  92.  
  93. ----
  94. ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
  95.  
  96. ********************
  97. TEST 6: buildin.py
  98. ********************
  99.  
  100. PROGRAM INPUT:
  101. abcdefgh
  102. ----
  103. Compiler error output:
  104. String and numeric operations unsupported. Line 4
  105.  
  106. ----
  107. ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
  108.  
  109. ********************
  110. TEST 7: factorial.py
  111. ********************
  112.  
  113. PROGRAM INPUT:
  114. a
  115. ----
  116. SUCCESS
  117.  
  118. ********************
  119. TEST 8: factorial.py
  120. ********************
  121.  
  122. SUCCESS
  123.  
  124. ********************
  125. TEST 9: factorial2.py
  126. ********************
  127.  
  128. PROGRAM INPUT:
  129. a
  130. ----
  131. Interpret error output:
  132. 148.28-30: syntax error, unexpected ID, expecting END
  133.  
  134. ----
  135. ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [53, 4].
  136.  
  137. ********************
  138. TEST 10: factorial2.py
  139. ********************
  140.  
  141. Interpret error output:
  142. 148.28-30: syntax error, unexpected ID, expecting END
  143.  
  144. ----
  145. ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [53, 4].
  146.  
  147. ********************
  148. TEST 11: badcomment.py
  149. ********************
  150.  
  151. SUCCESS
  152.  
  153. ********************
  154. TEST 12: baddot.py
  155. ********************
  156.  
  157. SUCCESS
  158.  
  159. ********************
  160. TEST 13: badchars.py
  161. ********************
  162.  
  163. SUCCESS
  164.  
  165. ********************
  166. TEST 14: badcomment2.py
  167. ********************
  168.  
  169. SUCCESS
  170.  
  171. ********************
  172. TEST 15: badexponent.py
  173. ********************
  174.  
  175. SUCCESS
  176.  
  177. ********************
  178. TEST 16: badindent2.py
  179. ********************
  180.  
  181. SUCCESS
  182.  
  183. ********************
  184. TEST 17: badstring.py
  185. ********************
  186.  
  187. SUCCESS
  188.  
  189. ********************
  190. TEST 18: emptyexponent.py
  191. ********************
  192.  
  193. SUCCESS
  194.  
  195. ********************
  196. TEST 19: morezeroes.py
  197. ********************
  198.  
  199. SUCCESS
  200.  
  201. ********************
  202. TEST 20: nonasci.py
  203. ********************
  204.  
  205. SUCCESS
  206.  
  207. ********************
  208. TEST 21: badfunction5.py
  209. ********************
  210.  
  211. SUCCESS
  212.  
  213. ********************
  214. TEST 22: badindent.py
  215. ********************
  216.  
  217. SUCCESS
  218.  
  219. ********************
  220. TEST 23: badfunction.py
  221. ********************
  222.  
  223. SUCCESS
  224.  
  225. ********************
  226. TEST 24: badfunction2.py
  227. ********************
  228.  
  229. SUCCESS
  230.  
  231. ********************
  232. TEST 25: badfunction3.py
  233. ********************
  234.  
  235. SUCCESS
  236.  
  237. ********************
  238. TEST 26: badfunction4.py
  239. ********************
  240.  
  241. SUCCESS
  242.  
  243. ********************
  244. TEST 27: badfunction7.py
  245. ********************
  246.  
  247. SUCCESS
  248.  
  249. ********************
  250. TEST 28: badindent3.py
  251. ********************
  252.  
  253. SUCCESS
  254.  
  255. ********************
  256. TEST 29: badwhile.py
  257. ********************
  258.  
  259. SUCCESS
  260.  
  261. ********************
  262. TEST 30: badwhile2.py
  263. ********************
  264.  
  265. SUCCESS
  266.  
  267. ********************
  268. TEST 31: badwhile3.py
  269. ********************
  270.  
  271. SUCCESS
  272.  
  273. ********************
  274. TEST 32: badif.py
  275. ********************
  276.  
  277. SUCCESS
  278.  
  279. ********************
  280. TEST 33: badif2.py
  281. ********************
  282.  
  283. SUCCESS
  284.  
  285. ********************
  286. TEST 34: badif3.py
  287. ********************
  288.  
  289. SUCCESS
  290.  
  291. ********************
  292. TEST 35: badcall.py
  293. ********************
  294.  
  295. Compiler error output:
  296. Unknown function call on line: 3
  297.  
  298. ----
  299. ERROR: Unexpected exit code of IFJ compiler. Actual: 3 Expected: [2].
  300.  
  301. ********************
  302. TEST 36: badcall2.py
  303. ********************
  304.  
  305. Compiler error output:
  306. Unknown function call on line: 3
  307.  
  308. ----
  309. ERROR: Unexpected exit code of IFJ compiler. Actual: 3 Expected: [2].
  310.  
  311. ********************
  312. TEST 37: badcall3.py
  313. ********************
  314.  
  315. SUCCESS
  316.  
  317. ********************
  318. TEST 38: badexpr.py
  319. ********************
  320.  
  321. SUCCESS
  322.  
  323. ********************
  324. TEST 39: badexpr2.py
  325. ********************
  326.  
  327. SUCCESS
  328.  
  329. ********************
  330. TEST 40: badexpr3.py
  331. ********************
  332.  
  333. SUCCESS
  334.  
  335. ********************
  336. TEST 41: badexpr4.py
  337. ********************
  338.  
  339. SUCCESS
  340.  
  341. ********************
  342. TEST 42: badexpr5.py
  343. ********************
  344.  
  345. SUCCESS
  346.  
  347. ********************
  348. TEST 43: badreturn.py
  349. ********************
  350.  
  351. SUCCESS
  352.  
  353. ********************
  354. TEST 44: badvar3.py
  355. ********************
  356.  
  357. Compiler error output:
  358. Variable 'a' on line 5. Function with this name already defined on line 1
  359.  
  360. ----
  361. ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [3].
  362.  
  363. ********************
  364. TEST 45: badfunction8.py
  365. ********************
  366.  
  367. SUCCESS
  368.  
  369. ********************
  370. TEST 46: badfunction9.py
  371. ********************
  372.  
  373. SUCCESS
  374.  
  375. ********************
  376. TEST 47: badfunction10.py
  377. ********************
  378.  
  379. SUCCESS
  380.  
  381. ********************
  382. TEST 48: badcall4.py
  383. ********************
  384.  
  385. SUCCESS
  386.  
  387. ********************
  388. TEST 49: badcall5.py
  389. ********************
  390.  
  391. SUCCESS
  392.  
  393. ********************
  394. TEST 50: badfunction6.py
  395. ********************
  396.  
  397. SUCCESS
  398.  
  399. ********************
  400. TEST 51: badtype.py
  401. ********************
  402.  
  403. SUCCESS
  404.  
  405. ********************
  406. TEST 52: badtype2.py
  407. ********************
  408.  
  409. SUCCESS
  410.  
  411. ********************
  412. TEST 53: badtype3.py
  413. ********************
  414.  
  415. SUCCESS
  416.  
  417. ********************
  418. TEST 54: badtype4.py
  419. ********************
  420.  
  421. SUCCESS
  422.  
  423. ********************
  424. TEST 55: badtype5.py
  425. ********************
  426.  
  427. SUCCESS
  428.  
  429. ********************
  430. TEST 56: badtype6.py
  431. ********************
  432.  
  433. SUCCESS
  434.  
  435. ********************
  436. TEST 57: badtype7.py
  437. ********************
  438.  
  439. SUCCESS
  440.  
  441. ********************
  442. TEST 58: badtype8.py
  443. ********************
  444.  
  445. SUCCESS
  446.  
  447. ********************
  448. TEST 59: badtype9.py
  449. ********************
  450.  
  451. SUCCESS
  452.  
  453. ********************
  454. TEST 60: zerodiv.py
  455. ********************
  456.  
  457. SUCCESS
  458.  
  459. ********************
  460. TEST 61: zerodiv2.py
  461. ********************
  462.  
  463. SUCCESS
  464.  
  465. ********************
  466. TEST 62: badbuildin.py
  467. ********************
  468.  
  469. Interpret error output:
  470. 1.1: syntax error, unexpected END, expecting HEADER
  471.  
  472. ----
  473. ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [53, 4].
  474.  
  475. ********************
  476. TEST 63: badbuildin2.py
  477. ********************
  478.  
  479. Interpret error output:
  480. Error at line: 32
  481. Label does not exist!
  482.  
  483. ----
  484. ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [53, 4].
  485.  
  486. ********************
  487. TEST 64: badbuildin3.py
  488. ********************
  489.  
  490. Interpret error output:
  491. Error at line: 32
  492. Label does not exist!
  493.  
  494. ----
  495. ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [53, 4].
  496.  
  497. ********************
  498. TEST 65: badbuildin6.py
  499. ********************
  500.  
  501. Interpret error output:
  502. Symbol GF@nil not found!
  503. Error at line: 24
  504. Symbol is undefined!
  505.  
  506. ----
  507. ERROR: Unexpected exit code of IFJ interpreter. Actual: 54 Expected: [53, 4].
  508.  
  509. ********************
  510. TEST 66: badbuildin7.py
  511. ********************
  512.  
  513. Interpret error output:
  514. Error at line: 24
  515. Label does not exist!
  516.  
  517. ----
  518. ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [53, 4].
  519.  
  520. ********************
  521. TEST 67: badbuildin4.py
  522. ********************
  523.  
  524. Interpret error output:
  525. Symbol GF@nil not found!
  526. Error at line: 20
  527. Symbol is undefined!
  528.  
  529. ----
  530. ERROR: Unexpected exit code of IFJ interpreter. Actual: 54 Expected: [53, 4].
  531.  
  532. ********************
  533. TEST 68: badbuildin5.py
  534. ********************
  535.  
  536. Interpret error output:
  537. Error at line: 28
  538. Label does not exist!
  539.  
  540. ----
  541. ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [53, 4].
  542.  
  543. ********************
  544. TEST 69: badbuildin8.py
  545. ********************
  546.  
  547. Interpret error output:
  548. Error at line: 24
  549. Label does not exist!
  550.  
  551. ----
  552. ERROR: Unexpected exit code of IFJ interpreter. Actual: 52 Expected: [58, 6, 4].
  553.  
  554. ********************
  555. TEST 70: emptyprogram.py
  556. ********************
  557.  
  558. Interpret error output:
  559. 1.1: syntax error, unexpected END, expecting HEADER
  560.  
  561. ----
  562. ERROR: Unexpected exit code of IFJ interpreter. Actual: 51 Expected: [0].
  563.  
  564. ********************
  565. TEST 71: specstring.py
  566. ********************
  567.  
  568. Compiler error output:
  569. <empty>
  570. ----
  571. ERROR: Unexpected exit code of IFJ compiler. Actual: -6 Expected: [0].
  572.  
  573. ********************
  574. TEST 72: lotofparams.py
  575. ********************
  576.  
  577. SUCCESS
  578.  
  579. ********************
  580. TEST 73: longidentif.py
  581. ********************
  582.  
  583. Compiler error output:
  584. <empty>
  585. ----
  586. ERROR: Unexpected exit code of IFJ compiler. Actual: -11 Expected: [0].
  587.  
  588. ********************
  589. TEST 74: geometry.py
  590. ********************
  591.  
  592. PROGRAM INPUT:
  593. abc
  594.  
  595. ----
  596. Compiler error output:
  597. String and numeric operations unsupported. Line 7
  598.  
  599. ----
  600. ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
  601.  
  602. ********************
  603. TEST 75: geometry.py
  604. ********************
  605.  
  606. PROGRAM INPUT:
  607. square
  608. 5
  609. rectangle
  610. 5.4
  611. 10.4
  612.  
  613.  
  614. ----
  615. Compiler error output:
  616. String and numeric operations unsupported. Line 7
  617.  
  618. ----
  619. ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
  620.  
  621. ********************
  622. TEST 76: geometry.py
  623. ********************
  624.  
  625. PROGRAM INPUT:
  626. circle
  627. 4.7
  628. triangle
  629. 1.1
  630. 2.2
  631. 2.2
  632. 2.8
  633. square
  634. 0
  635.  
  636.  
  637. ----
  638. Compiler error output:
  639. String and numeric operations unsupported. Line 7
  640.  
  641. ----
  642. ERROR: Unexpected exit code of IFJ compiler. Actual: 4 Expected: [0].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement