Skip to main content
TyperLab
Beta
Home
Learn
Practice
Code Typing
Leaderboard
Progress
EN
RU
Go Typing Practice
Open course
Go / Testing / Basic Tests
Basic test function
1 / 1
—
CPM
—
Accuracy
0
Errors
00:00
Time
basic-test-function.go
Start typing to begin
Help
A−
30
A+
Tab ⇥
Enter ↵
Start typing to begin
Start typing to begin func TestTrimSpace(t *testing.T) { got := strings.TrimSpace(" hi ") if got !=
1
f
u
n
c
T
e
s
t
T
r
i
m
S
p
a
c
e
(
t
*
t
e
s
t
i
n
g
.
T
)
{
2
g
o
t
:
=
s
t
r
i
n
g
s
.
T
r
i
m
S
p
a
c
e
(
"
h
i
"
)
3
i
f
g
o
t
!
=
"
h
i
"
{
4
t
.
F
a
t
a
l
f
(
"
g
o
t
%
q
,
w
a
n
t
%
q
"
,
g
o
t
,
"
h
i
"
)
5
}
6
}
Go
0 CPM
0 WPM
—
0 errors
00:00
0 / 132
Previous
1 / 1
Next exercise