TDD Example Test Driven – Koskela Chapter 2. Mail Template Test List 1.Evaluating template “Hello, ${name}” with the value “Reader” for variable “name”

Slides:



Advertisements
Similar presentations
Chapter 9 Strings. Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 9-2 Learning Objectives An Array Type for Strings C-Strings Character.
Advertisements

Copyright © 2002 Pearson Education, Inc. Slide 1.
CHAPTER 11 FILE INPUT & OUTPUT Introduction to Computer Science Using Ruby (c) 2012 Ophir Frieder et al.
(define (f x) (if (< x 0) (lambda (y) (- y x)) (lambda (y) (- x y)))) GE f: P1 para:x body:(if … )
1 C++ string Class Chapter 6. 2 Agenda String Basics (cin, getline )  string operations mixed I/O using >> & getline() Table Output using setw() Functions.
Chapter 2 Review Questions
Engineering Computing I Chapter 1 – Part B A Tutorial Introduction continued.
Lecture 5 Strings and more I/O COMP1681 / SE15 Introduction to Programming.
Static Validation of Dynamically Generated XML Documents A survey on a series of papers by the BRICS research group at the University of Aarhus, Denmark.
©Brooks/Cole, 2001 Chapter 11 Strings. ©Brooks/Cole, 2001 Figure 11-1.
Javascript II Expressions and Data Types. 2 JavaScript Review programs executed by the web browser programs embedded in a web page using the script element.
Rewrite With Fractional Exponents. Rewrite with fractional exponent:
Order of Operations Chapter 1 Section 2 Part 1 and Part 2.
Chapter 15 Section 15.6 Limits and Continuity; Equality of Mixed Partials.
CETPA Strategic Planning Templates
THE SCIENTIFIC PROCESS. Chapter Three: The Scientific Process  3.1 Inquiry and the Scientific Method  3.2 Experiments and Variables  3.3 The Nature.
Review: 9.4d Mini-Quiz 1. The time t for a pendulum of length L to go through one cycle is given by the formula: How long is the pendulum of a mantel clock.
Strings in MIPS. Chapter 2 — Instructions: Language of the Computer — 2 Character Data Byte-encoded character sets – ASCII: 128 characters 95 graphic,
URails Meeting 004. Ruby Quiz Is the following statement accessing a variable or calling a method? profile.user_name Could be either. Calling a method.
Chapter 51 Decisions Relational and Logical Operators If Blocks Select Case Blocks.
Greetings Book 1A Unit 1 New Friends Book 1A Unit 1 New Friends.
Variables, Input, and Output. Challenge: ● Ask the user his or her name, and repeat that name to the user ● Pause video and try.
Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything.
Support standard JavaScript code with static typing Encapsulation through classes and modules Support for constructors, properties and.
Interpolation Variable Interpolation, Backslash Interpolation.
CSC 142 F 1 CSC 142 References and Primitives. CSC 142 F 2 Review: references and primitives  Reference: the name of an object. The type of the object.
LING/C SC/PSYC 438/538 Online Lecture 7 Sandiway Fong.
LOOPS CHAPTER Topics  Four Types of Loops –while –do…while –for –foreach  Jump Statements in Loops –break –continue 2.
Computer Programming Arrays 1. Question #1 2 Question Choose the correct answer..
CS 1428 Exam I Review. Exam Format 130 Total Points – 40 Points Writing Programs – 30 Points Tracing Algorithms and determining results – 20 Points Short.
Chapter Four Common facilities of procedural languages.
Hello Educational presentation.
Operator Overloading; Class string
2 Chapter Chapter 2 Integers and Introduction to Variables.
CS 1428 Exam I Review.
TDD Overview CS 4501/6501 Software Testing
Hello! How are you? How do you do? (formal)
Animal Farm Journal: In this Order
Strings in Python Creating a string.
GREETINGS.
HI !.
معلم الصف الثالث الابتدائي
Chapter 12: Text Processing
Test Driven Lasse Koskela Chapter 2: Beginning TDD
Chapter 12: Text Processing
CS 1428 Exam I Review.
Greeting and Leave-taking
Chemical Reaction Engineering Asynchronous Video Series
L1-6 Notes: Algebra: Variables and Expressions
HELLO THERE. THIS IS A TEST SLIDE SLIDE NUMBER 1.
Primary Longman Elect 1A Chapter 1 Making a greeting.
Test Driven Lasse Koskela Chapter 2: Beginning TDD
Test Driven Lasse Koskela Chapter 3: Refactoring in Small Steps
ФОНД “СОЦИАЛНО ПОДПОМАГАНЕ”
Writing Reader-Centered Correspondence: Letters, Memos, and
Translate the conversations using your chapter schedule
The Linux Command Line Chapter 25
ECE 103 Engineering Programming Chapter 25 C Strings, Part 1
CHAPTER 21 LOOPS 1.
THE SCIENTIFIC PROCESS
equivalent expression
CHAPTER 2 BASIC JAVASCRIPT INSTRUCTIONS
Nate Brunelle Today: Strings, Type Casting
Greetings & introduction
Greetings Unit 1 My new friends.
CS 1428 Exam I Review.
Perl Regular Expressions – Part 1
Test Driven Lasse Koskela Chapter 3: Refactoring in Small Steps
Hello Hi Hello Hi Hello Hi Hello Hi Hello Hi Hello Hi.
Exponential Functions Logarithmic Functions
Presentation transcript:

TDD Example Test Driven – Koskela Chapter 2

Mail Template Test List 1.Evaluating template “Hello, ${name}” with the value “Reader” for variable “name” results in the string “Hello, Reader”. 2.Evaluating template “${greeting}, ${name}” with the values “Hi” and “Reader”, respectively, results in the string “Hello, Reader”. 3.Evaluating template “Hello, ${name}” with values “Hi” and “Reader” for variables “doesnotexist” and “name”, respectively, results in the string “Hello, Reader” 4.Evaluating template “Hello, ${name}” with no value for variable “name” raises a MissingValueError. 5.Verify that a template of 100 words and 20 variables with values of approximately 15 characters each is evaluated in 200 milliseconds or less. 6.Evaluate template “${one}, ${two}, ${three}” with values “1”, “${foo}”, and “3”, respectively, and verify that the template engine renders the result as “1, ${foo}, 3”.

Mail Template Test List 1.Evaluating template “Hello, ${name}” with the value “Reader” for variable “name” results in the string “Hello, Reader”. 2.Evaluating template “${greeting}, ${name}” with the values “Hi” and “Reader”, respectively, results in the string “Hello, Reader”. 3.Evaluating template “Hello, ${name}” with values “Hi” and “Reader” for variables “doesnotexist” and “name”, respectively, results in the string “Hello, Reader” 4.Evaluating template “Hello, ${name}” with no value for variable “name” raises a MissingValueError. 5.Verify that a template of 100 words and 20 variables with values of approximately 15 characters each is evaluated in 200 milliseconds or less. 6.Evaluate template “${one}, ${two}, ${three}” with values “1”, “${foo}”, and “3”, respectively, and verify that the template engine renders the result as “1, ${foo}, 3”.

Mail Template Test List 1.Evaluating template “Hello, ${name}” with the value “Reader” for variable “name” results in the string “Hello, Reader”. 2.Evaluating template “${greeting}, ${name}” with the values “Hi” and “Reader”, respectively, results in the string “Hello, Reader”. 3.Evaluating template “Hello, ${name}” with values “Hi” and “Reader” for variables “doesnotexist” and “name”, respectively, results in the string “Hello, Reader” 4.Evaluating template “Hello, ${name}” with no value for variable “name” raises a MissingValueError. 5.Verify that a template of 100 words and 20 variables with values of approximately 15 characters each is evaluated in 200 milliseconds or less. 6.Evaluate template “${one}, ${two}, ${three}” with values “1”, “${foo}”, and “3”, respectively, and verify that the template engine renders the result as “1, ${foo}, 3”.

Mail Template Test List 1.Evaluating template “Hello, ${name}” with the value “Reader” for variable “name” results in the string “Hello, Reader”. 2.Evaluating template “${greeting}, ${name}” with the values “Hi” and “Reader”, respectively, results in the string “Hello, Reader”. 3.Evaluating template “Hello, ${name}” with values “Hi” and “Reader” for variables “doesnotexist” and “name”, respectively, results in the string “Hello, Reader” 4.Evaluating template “Hello, ${name}” with no value for variable “name” raises a MissingValueError. 5.Verify that a template of 100 words and 20 variables with values of approximately 15 characters each is evaluated in 200 milliseconds or less. 6.Evaluate template “${one}, ${two}, ${three}” with values “1”, “${foo}”, and “3”, respectively, and verify that the template engine renders the result as “1, ${foo}, 3”.

Mail Template Test List 1.Evaluating template “Hello, ${name}” with the value “Reader” for variable “name” results in the string “Hello, Reader”. 2.Evaluating template “${greeting}, ${name}” with the values “Hi” and “Reader”, respectively, results in the string “Hello, Reader”. 3.Evaluating template “Hello, ${name}” with values “Hi” and “Reader” for variables “doesnotexist” and “name”, respectively, results in the string “Hello, Reader” 4.Evaluating template “Hello, ${name}” with no value for variable “name” raises a MissingValueError. 5.Verify that a template of 100 words and 20 variables with values of approximately 15 characters each is evaluated in 200 milliseconds or less. 6.Evaluate template “${one}, ${two}, ${three}” with values “1”, “${foo}”, and “3”, respectively, and verify that the template engine renders the result as “1, ${foo}, 3”.

Mail Template Test List 1.Evaluating template “Hello, ${name}” with the value “Reader” for variable “name” results in the string “Hello, Reader”. 2.Evaluating template “${greeting}, ${name}” with the values “Hi” and “Reader”, respectively, results in the string “Hello, Reader”. 3.Evaluating template “Hello, ${name}” with values “Hi” and “Reader” for variables “doesnotexist” and “name”, respectively, results in the string “Hello, Reader” 4.Evaluating template “Hello, ${name}” with no value for variable “name” raises a MissingValueError. 5.Verify that a template of 100 words and 20 variables with values of approximately 15 characters each is evaluated in 200 milliseconds or less. 6.Evaluate template “${one}, ${two}, ${three}” with values “1”, “${foo}”, and “3”, respectively, and verify that the template engine renders the result as “1, ${foo}, 3”.