1
1

00:00:02,070  -->  00:00:04,820
<v Tutor>Now we did learn about this triple A pattern</v>
2

2

00:00:04,820  -->  00:00:06,510
in the previous lecture.
3

3

00:00:06,510  -->  00:00:08,620
Another thing I wanna mention here
4

4

00:00:08,620  -->  00:00:10,240
about writing good tests,
5

5

00:00:10,240  -->  00:00:13,640
is that you wanna keep your tests simple.
6

6

00:00:13,640  -->  00:00:15,310
This is really important to me
7

7

00:00:15,310  -->  00:00:20,310
because it's easy to build an overly complex test,
8

8

00:00:20,370  -->  00:00:22,550
and here it would already be a bit too much
9

9

00:00:22,550  -->  00:00:25,440
if you start adding a bunch of numbers in here.
10

10

00:00:25,440  -->  00:00:27,090
Of course it will still work,
11

11

00:00:27,090  -->  00:00:28,550
there's nothing wrong with it,
12

12

00:00:28,550  -->  00:00:30,410
but which value does it add
13

13

00:00:30,410  -->  00:00:32,500
if you add more numbers?
14

14

00:00:32,500  -->  00:00:34,040
Of course, if you wanna test
15

15

00:00:34,040  -->  00:00:37,130
whether the function maybe doesn't work correctly anymore
16

16

00:00:37,130  -->  00:00:39,440
with more numbers, then this could be a reason
17

17

00:00:39,440  -->  00:00:41,100
but this shouldn't go into a test
18

18

00:00:41,100  -->  00:00:42,300
that just checks
19

19

00:00:42,300  -->  00:00:44,760
whether the numbers are summarized.
20

20

00:00:44,760  -->  00:00:46,300
For (indistinct), it's sufficient
21

21

00:00:46,300  -->  00:00:48,513
if you have two numbers in that array.
22

22

00:00:49,400  -->  00:00:51,070
So you wanna keep your tests
23

23

00:00:51,070  -->  00:00:53,640
as simple and concise as possible,
24

24

00:00:53,640  -->  00:00:57,960
and you don't wanna make them unnecessarily complex
25

25

00:00:57,960  -->  00:01:01,280
because you always have to think about yourself coming back
26

26

00:01:01,280  -->  00:01:03,520
to a test after a couple of weeks,
27

27

00:01:03,520  -->  00:01:06,430
or may be a fellow developer diving into the test
28

28

00:01:06,430  -->  00:01:09,270
and everyone should be able to quickly understand
29

29

00:01:09,270  -->  00:01:13,130
and important, change this test if needed.
30

30

00:01:13,130  -->  00:01:16,660
So keep things simple as we're doing it here.
31

31

00:01:16,660  -->  00:01:17,840
And that of course was a lot
32

32

00:01:17,840  -->  00:01:19,710
of talking about the first test
33

33

00:01:19,710  -->  00:01:21,220
but this is the foundation
34

34

00:01:21,220  -->  00:01:22,850
for the entire rest of this course
35

35

00:01:22,850  -->  00:01:25,473
and for your Testing career in general.
36

36

00:01:26,330  -->  00:01:27,800
So now with that out of the way,
37

37

00:01:27,800  -->  00:01:29,480
let's dig a bit deeper into tests
38

38

00:01:29,480  -->  00:01:32,683
and let's see which other kinds of tests we could write.

