Guest User

Untitled

a guest
Jan 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. blatt02, 12.10.2012
  2.  
  3. ****************************************************************
  4. Loesung mit Splint pruefen
  5. ****************************************************************
  6. Splint 3.1.1 --- 09 Aug 2007
  7.  
  8. blatt02/submissions/24720/build/main.c: (in function ulam)
  9. blatt02/submissions/24720/build/main.c:23:9: Assignment of double to int:
  10. erg = (1.0 / 2.0) * z
  11. To allow all numeric types to match, use +relaxtypes.
  12.  
  13. Finished checking --- 1 code warning
  14. make[1]: [splint] Error 1 (ignored)
  15.  
  16. ****************************************************************
  17. Falls Loesung eine main-Funktion enthaelt wird diese umbenannt
  18. ****************************************************************
  19. Untersuche... ./blatt02/submissions/24720/build/main.c
  20.  
  21. ****************************************************************
  22. Testprogramme zur Loesung kopieren...
  23. ****************************************************************
  24.  
  25. ****************************************************************
  26. Kompilieren mit C89-Standard
  27. ****************************************************************
  28. Compilation done
  29.  
  30. ****************************************************************
  31. Kompilieren mit C99-Standard
  32. ****************************************************************
  33. Compilation done
  34.  
  35. ****************************************************************
  36. TEST ULAM
  37. ****************************************************************
  38.  
  39. Tests run:
  40. ----------------------- Standard Output -----------------------
  41. ========================================================
  42. Ueberpruefe Testfaelle ( U L A M _ M A X ):
  43. ========================================================
  44. Testfall 1 ulam_max: Ungueltiger Wert fuer Parameter a_0
  45. [OK]
  46. [OK]
  47. Testfall 2 ulam_max: Gueltige Werte fuer Parameter a_0
  48. [ERROR]
  49. Aufruf von ulam_max(1)
  50. expected:<[
  51. 1
  52. ]> but was:<[
  53. -1
  54. ]>
  55. [ERROR]
  56. Aufruf von ulam_max(2)
  57. expected:<[
  58. 2
  59. ]> but was:<[
  60. 1
  61. ]>
  62. [OK]
  63. [ERROR]
  64. Aufruf von ulam_max(4)
  65. expected:<[
  66. 4
  67. ]> but was:<[
  68. 2
  69. ]>
  70. [OK]
  71. ========================================================
  72. Ueberpruefe Testfaelle ( U L A M _ T W I N S ):
  73. ========================================================
  74. Testfall 3 ulam_twins: Ungueltiger Wert fuer Parameter limit
  75. [OK]
  76. Testfall 4 ulam_twins: ULAM-Zwilling nicht vollstaendig im Intervall enthalten
  77. [OK]
  78. Testfall 5 ulam_twins: Gueltige Werte fuer Parameter limit
  79. [OK]
  80. ========================================================
  81. Ueberpruefe Testfaelle ( U L A M _ M U L T I P L E S ):
  82. ========================================================
  83. Testfall 6 ulam_multiples: Ungueltiger Wert fuer Parameter limit
  84. [OK]
  85. Testfall 7 ulam_multiples: Ungueltiger Wert fuer Parameter number
  86. [OK]
  87. Testfall 8 ulam_multiples: Mehrling fuer number=2 nicht vollstaendig im Intervall enthalten
  88. [OK]
  89. Testfall 9 ulam_multiples: Mehrling fuer number=4 nicht vollstaendig im Intervall enthalten
  90. [OK]
  91. Testfall 10 ulam_multiples: Gueltige Werte fuer Parameter limit und number
  92. [ERROR]
  93. Aufruf von ulam_multiples(110, 4)
  94. expected:<[
  95. 107
  96. ]> but was:<[
  97. 106
  98. ]>
  99. [ERROR]
  100. Aufruf von ulam_multiples(111, 4)
  101. expected:<[
  102. 108
  103. ]> but was:<[
  104. 106
  105. ]>
  106. [OK]
  107. [ERROR]
  108. Aufruf von ulam_multiples(391, 6)
  109. expected:<[
  110. 386
  111. ]> but was:<[
  112. 385
  113. ]>
  114.  
  115. ********************************************************
  116.  
  117. Run Summary: Type Total Ran Passed Failed Inactive
  118. suites 1 1 n/a 0 0
  119. tests 3 3 1 2 0
  120. asserts 18 18 12 6 n/a
  121.  
  122. Elapsed time = 0.090 seconds
  123.  
  124. ********************************************************
  125. Anzahl Testfaelle mit OK: 12 (von insgesamt 18)
  126. ********************************************************
  127.  
  128. -------------------- ---------------------- -------------------
Add Comment
Please, Sign In to add comment