Submit Search
Upload
Introduction to TDD in C
•
0 likes
•
155 views
R
Raphael Frauenknecht
Follow
How to use test-driven development in C as beginner in programming
Read less
Read more
Software
Report
Share
Report
Share
1 of 32
Download now
Download to read offline
Recommended
C언어 스터디 강의자료 - 2차시
C언어 스터디 강의자료 - 2차시
Junha Jang
C언어 스터디 강의자료 - 3차시
C언어 스터디 강의자료 - 3차시
Junha Jang
C - Pattern - Code - [Future Programming]
C - Pattern - Code - [Future Programming]
Future Programming
C언어 스터디 강의자료 - 4차시
C언어 스터디 강의자료 - 4차시
Junha Jang
Luis cuñas programacion
Luis cuñas programacion
luisitofranklin
PROBLEMAS DE PROGRAMACION 2 por jordan puente quinto
PROBLEMAS DE PROGRAMACION 2 por jordan puente quinto
Jordan Puente
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
Chris Ohk
Vcs6
Vcs6
Malikireddy Bramhananda Reddy
Recommended
C언어 스터디 강의자료 - 2차시
C언어 스터디 강의자료 - 2차시
Junha Jang
C언어 스터디 강의자료 - 3차시
C언어 스터디 강의자료 - 3차시
Junha Jang
C - Pattern - Code - [Future Programming]
C - Pattern - Code - [Future Programming]
Future Programming
C언어 스터디 강의자료 - 4차시
C언어 스터디 강의자료 - 4차시
Junha Jang
Luis cuñas programacion
Luis cuñas programacion
luisitofranklin
PROBLEMAS DE PROGRAMACION 2 por jordan puente quinto
PROBLEMAS DE PROGRAMACION 2 por jordan puente quinto
Jordan Puente
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
Chris Ohk
Vcs6
Vcs6
Malikireddy Bramhananda Reddy
Trabajo de programacion
Trabajo de programacion
Instituto Tecnologico Superior de Informatica "Ibarra"
Bcsl 033 data and file structures lab s4-3
Bcsl 033 data and file structures lab s4-3
Dr. Loganathan R
Bcsl 033 data and file structures lab s1-2
Bcsl 033 data and file structures lab s1-2
Dr. Loganathan R
Metodos Numericos
Metodos Numericos
andres felipe chamorro
Program to remove Left factoring
Program to remove Left factoring
Shraddha Patel
質數的判斷
質數的判斷
Hui-Shih Leng
(Meta 4) ejemplo calcular la mitad de un numero dev c++
(Meta 4) ejemplo calcular la mitad de un numero dev c++
Eli Diaz
Bubble sort
Bubble sort
Hitesh Kumar
B.f.s
B.f.s
MDFERDOUSAHMED
Nova microsoft word document
Nova microsoft word document
Saša Ličina
Union
Union
archana chitte
Ejercicios.
Ejercicios.
Jose Dani
program sederhana
program sederhana
muhammadalfin03
Simulacion - Algoritmo congruencial cuadratico
Simulacion - Algoritmo congruencial cuadratico
José Antonio Sandoval Acosta
Bancocic
Bancocic
edgarflores28
Daniel snake
Daniel snake
Tefaa Salazar
Prueba de montecarlo
Prueba de montecarlo
Gonzalo Negrete Montaño
งาน#2
งาน#2
Bam'nunnaput Sabangban
Rafael vasquez
Rafael vasquez
Rafael Vasquez
Programming in C
Programming in C
Vineet Kumar Saini
3Com 3C18241
3Com 3C18241
savomir
Presentación dgcp mesicic
Presentación dgcp mesicic
Manu Gonzalez Caballero
More Related Content
What's hot
Trabajo de programacion
Trabajo de programacion
Instituto Tecnologico Superior de Informatica "Ibarra"
Bcsl 033 data and file structures lab s4-3
Bcsl 033 data and file structures lab s4-3
Dr. Loganathan R
Bcsl 033 data and file structures lab s1-2
Bcsl 033 data and file structures lab s1-2
Dr. Loganathan R
Metodos Numericos
Metodos Numericos
andres felipe chamorro
Program to remove Left factoring
Program to remove Left factoring
Shraddha Patel
質數的判斷
質數的判斷
Hui-Shih Leng
(Meta 4) ejemplo calcular la mitad de un numero dev c++
(Meta 4) ejemplo calcular la mitad de un numero dev c++
Eli Diaz
Bubble sort
Bubble sort
Hitesh Kumar
B.f.s
B.f.s
MDFERDOUSAHMED
Nova microsoft word document
Nova microsoft word document
Saša Ličina
Union
Union
archana chitte
Ejercicios.
Ejercicios.
Jose Dani
program sederhana
program sederhana
muhammadalfin03
Simulacion - Algoritmo congruencial cuadratico
Simulacion - Algoritmo congruencial cuadratico
José Antonio Sandoval Acosta
Bancocic
Bancocic
edgarflores28
Daniel snake
Daniel snake
Tefaa Salazar
Prueba de montecarlo
Prueba de montecarlo
Gonzalo Negrete Montaño
งาน#2
งาน#2
Bam'nunnaput Sabangban
Rafael vasquez
Rafael vasquez
Rafael Vasquez
Programming in C
Programming in C
Vineet Kumar Saini
What's hot
(20)
Trabajo de programacion
Trabajo de programacion
Bcsl 033 data and file structures lab s4-3
Bcsl 033 data and file structures lab s4-3
Bcsl 033 data and file structures lab s1-2
Bcsl 033 data and file structures lab s1-2
Metodos Numericos
Metodos Numericos
Program to remove Left factoring
Program to remove Left factoring
質數的判斷
質數的判斷
(Meta 4) ejemplo calcular la mitad de un numero dev c++
(Meta 4) ejemplo calcular la mitad de un numero dev c++
Bubble sort
Bubble sort
B.f.s
B.f.s
Nova microsoft word document
Nova microsoft word document
Union
Union
Ejercicios.
Ejercicios.
program sederhana
program sederhana
Simulacion - Algoritmo congruencial cuadratico
Simulacion - Algoritmo congruencial cuadratico
Bancocic
Bancocic
Daniel snake
Daniel snake
Prueba de montecarlo
Prueba de montecarlo
งาน#2
งาน#2
Rafael vasquez
Rafael vasquez
Programming in C
Programming in C
Viewers also liked
3Com 3C18241
3Com 3C18241
savomir
Presentación dgcp mesicic
Presentación dgcp mesicic
Manu Gonzalez Caballero
Magnus lönnbergprofile
Magnus lönnbergprofile
Magnus Lönnberg
Gender selection
Gender selection
genderselectionaustralia
3Com 3CBLSF50-ME
3Com 3CBLSF50-ME
savomir
3Com 10002220 REV AB
3Com 10002220 REV AB
savomir
A donde van a parar
A donde van a parar
Ana Varon
Misión leonardo
Misión leonardo
leonardoramirez7271
Untitled-10
Untitled-10
olenaterekha
Builders in ahmedabad
Builders in ahmedabad
PropChill
3Com 3CR17333A-91
3Com 3CR17333A-91
savomir
3Com 1697-060-000-2.00
3Com 1697-060-000-2.00
savomir
Cuenta atras
Cuenta atras
segundociclocm
Proyecto de extraordinario informatica
Proyecto de extraordinario informatica
Luis Guzmán
Viewers also liked
(14)
3Com 3C18241
3Com 3C18241
Presentación dgcp mesicic
Presentación dgcp mesicic
Magnus lönnbergprofile
Magnus lönnbergprofile
Gender selection
Gender selection
3Com 3CBLSF50-ME
3Com 3CBLSF50-ME
3Com 10002220 REV AB
3Com 10002220 REV AB
A donde van a parar
A donde van a parar
Misión leonardo
Misión leonardo
Untitled-10
Untitled-10
Builders in ahmedabad
Builders in ahmedabad
3Com 3CR17333A-91
3Com 3CR17333A-91
3Com 1697-060-000-2.00
3Com 1697-060-000-2.00
Cuenta atras
Cuenta atras
Proyecto de extraordinario informatica
Proyecto de extraordinario informatica
Introduction to TDD in C
1.
2.
3.
4.
1.
5.
1. 2.
6.
1. 2. 3.
7.
1. 2. 3. 4.
8.
1. 2. 3. 4. 5.
9.
1. 2. 3. 4. 5.
10.
1. 2. 3. 4. 5.
11.
12.
13.
14.
15.
16.
int sum_of_multiples(int border){ int
sum = 0; // calculate something return sum; }
17.
void test(int output,int
expected){ if(output == expected) printf("Test:t successn"); else printf("Test:t failn"); }
18.
int main(void){ test(sum_of_multiples(4),3); return 0; }
19.
20.
int sum_of_multiples(int border){ int
sum = 0; // calculate something for(int i=1; i<border; i++){ if(i%3==0) sum += i; } return sum; }
21.
22.
• • •
23.
int sumMultiplesOf3and5(int border){ int
sum = 0; // calculate something for(int i=1; i<border; i++){ if(i%3==0) sum += i; } return sum; }
24.
int sumMultiplesOf3and5(int border){ int
sum = 0; for(int i=1; i<border; i++){ if(i%3==0) sum += i; } return sum; }
25.
26.
int main(void){ test(sumMultiplesOf3and5(4),3); test(sumMultiplesOf3and5(10),21); return 0; }
27.
28.
int sumMultiplesOf3and5(int border){ int
sum = 0; for(int i=1; i<border; i++){ if(i%3==0 || i%5==0) sum += i; } return sum; }
29.
30.
int main(void){ test(sumMultiplesOf3and5(4),3); test(sumMultiplesOf3and5(10),21); test(sumMultiplesOf3and5(100),2318); return 0; }
Download now