Skip to main content
TyperLab
Beta
Home
Learn
Practice
Code Typing
Leaderboard
Progress
EN
RU
Go Typing Practice
Open course
Go / Testing / Expected Errors
Expected error
1 / 1
—
CPM
—
Accuracy
0
Errors
00:00
Time
expected-error.go
Start typing to begin
Help
A−
30
A+
Tab ⇥
Enter ↵
Start typing to begin
Start typing to begin _, err := ParseUser("") if !errors.Is(err, ErrEmptyUser) { t.Fatalf("expected E
1
_
,
e
r
r
:
=
P
a
r
s
e
U
s
e
r
(
"
"
)
2
i
f
!
e
r
r
o
r
s
.
I
s
(
e
r
r
,
E
r
r
E
m
p
t
y
U
s
e
r
)
{
3
t
.
F
a
t
a
l
f
(
"
e
x
p
e
c
t
e
d
E
r
r
E
m
p
t
y
U
s
e
r
,
g
o
t
%
v
"
,
e
r
r
)
4
}
Go
0 CPM
0 WPM
—
0 errors
00:00
0 / 108
Previous
1 / 1
Next exercise