All language subtitles for 384 Checking and fixing errors in tests.en

af Afrikaans
ak Akan
sq Albanian
am Amharic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,540 --> 00:00:06,210 It's now time to add another test to this file and this time we want to check that when they input string 2 00:00:06,210 --> 00:00:14,100 is empty then our validator returns false and to do this quickly I'm going to copy and paste this test 3 00:00:14,250 --> 00:00:21,570 over here and then I can change the description to empty string and in my expectation I can possibly 4 00:00:21,570 --> 00:00:25,710 do it or not is valid with an empty string like this. 5 00:00:25,710 --> 00:00:28,430 And that's try to run this test right away. 6 00:00:30,230 --> 00:00:34,160 So when we do this we get our report with an error. 7 00:00:34,820 --> 00:00:42,170 And this says that the test was expecting a value of true but instead it got a value of false. 8 00:00:42,230 --> 00:00:47,580 And when we use expect the expected value is always the one on the right. 9 00:00:47,780 --> 00:00:51,190 And the actual value is always the one on the left. 10 00:00:51,200 --> 00:00:57,560 So in this case I had made a mistake in the test code because the expected values should be false when 11 00:00:57,560 --> 00:00:58,520 the string is empty. 12 00:00:59,090 --> 00:01:07,960 So I'm going to fix this and then I can run the tests again and after they complete running I can see 13 00:01:07,960 --> 00:01:14,650 that they are now all green and this confirms that our string validator works as intended with empty 14 00:01:14,740 --> 00:01:16,520 and not and these strings. 15 00:01:16,540 --> 00:01:16,770 OK. 16 00:01:16,810 --> 00:01:18,700 So let's continue on the next video. 1673

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.