@@ -26,7 +26,7 @@ <h2>Project 0: Intro project</h2>
26
26
27
27
< h3 > Regular Requirements</ h3 >
28
28
29
- < p > These sections describe what you must do to receive credit for " completing"
29
+ < p > These sections describe what you must do to receive credit for completing
30
30
P0. </ p >
31
31
32
32
< h4 > Unit Requirements</ h4 >
@@ -82,6 +82,10 @@ <h4>Integration Requirements</h4>
82
82
< li > Goodbye mode ("< tt > -g</ tt > ") < br />
83
83
< br /> Print "< tt > Goodbye!</ tt > " </ li >
84
84
85
+ < li > Factorial mode ("< tt > -f <n></ tt > ") < br />
86
+ < br /> Print the factorial of the given number, using the
87
+ < tt > factorial</ tt > function described in the previous section. </ li >
88
+
85
89
< li > Cat mode ("< tt > -c <file></ tt > ") < br />
86
90
< br /> Print each line from the given file to standard out, similar to
87
91
the Unix < tt > cat</ tt > utility. </ li >
@@ -108,10 +112,13 @@ <h4>Testing</h4>
108
112
Private:A_sumarray_null_pointer:0: Assertion 'sum_array(((void *)0), 0) == 0' failed: sum_array(((void *)0), 0) == -1, 0 == 0
109
113
========================================
110
114
INTEGRATION TESTS
111
- C_hello FAIL (see outputs/C_hello .diff for details)
115
+ D_hello FAIL (see outputs/D_hello .diff for details)
112
116
C_goodbye FAIL (see outputs/C_goodbye.diff for details)
117
+ B_fact FAIL (see outputs/B_fact.diff for details)
113
118
B_cat FAIL (see outputs/B_cat.diff for details)
114
119
A_invalid_arg FAIL (see outputs/A_invalid_arg.diff for details)
120
+ A_fact_no_number FAIL (see outputs/A_fact_no_number.diff for details)
121
+ A_fact_letters FAIL (see outputs/A_fact_letters.diff for details)
115
122
A_cat_no_filename FAIL (see outputs/A_cat_no_filename.diff for details)
116
123
A_cat_file_noexist FAIL (see outputs/A_cat_file_noexist.diff for details)
117
124
No memory leak found.
@@ -126,10 +133,13 @@ <h4>Testing</h4>
126
133
100%: Checks: 8, Failures: 0, Errors: 0
127
134
========================================
128
135
INTEGRATION TESTS
129
- C_hello pass
136
+ D_hello pass
130
137
C_goodbye pass
138
+ B_fact pass
131
139
B_cat pass
132
140
A_invalid_arg pass
141
+ A_fact_no_number pass
142
+ A_fact_letters pass
133
143
A_cat_no_filename pass
134
144
A_cat_file_noexist pass
135
145
No memory leak found.
@@ -139,16 +149,11 @@ <h4>Testing</h4>
139
149
< p > You should of course write your own tests as well. You should use the
140
150
provided tests only as an indicator of how complete your solution is. </ p >
141
151
142
- < p > Note that in this project, the "integration" tests don't really test for
143
- successful integration of smaller program units; they test entirely separate
152
+ < p > Note that in this project, some of the "integration" tests don't really test
153
+ for successful integration of smaller program units; they test entirely separate
144
154
functionality. This will not be the case in the rest of the projects. </ p >
145
155
146
-
147
- < p > Copyright © 2018 Mike Lam
148
- < a href ="https://validator.w3.org/check?uri=referer ">
149
- < img style ="margin: 0 0 -3px 10px; " src ="http://www.w3.org/Icons/valid-xhtml10 " alt ="Valid XHTML 1.0 Strict " height ="15 " width ="50 " />
150
- </ a >
151
- </ p >
156
+ < p > Copyright © 2018 Mike Lam </ p >
152
157
153
158
</ div >
154
159
0 commit comments