Skip to content

Commit 16c7db0

Browse files
authored
doc(examples): add missing examples in ro_example_test.go (#124)
1 parent e4565aa commit 16c7db0

File tree

2 files changed

+1003
-240
lines changed

2 files changed

+1003
-240
lines changed

operator_transformations_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ func TestOperatorTransformationMapTo(t *testing.T) {
9090
is := assert.New(t)
9191

9292
values, err := Collect(
93-
MapTo[int, int](42)(Just(1, 2, 3)),
93+
MapTo[int](42)(Just(1, 2, 3)),
9494
)
9595
is.Equal([]int{42, 42, 42}, values)
9696
is.NoError(err)
9797

9898
values, err = Collect(
99-
MapTo[int, int](42)(Empty[int]()),
99+
MapTo[int](42)(Empty[int]()),
100100
)
101101
is.Equal([]int{}, values)
102102
is.NoError(err)
103103

104104
values, err = Collect(
105-
MapTo[int, int](42)(Throw[int](assert.AnError)),
105+
MapTo[int](42)(Throw[int](assert.AnError)),
106106
)
107107
is.Equal([]int{}, values)
108108
is.EqualError(err, assert.AnError.Error())

0 commit comments

Comments
 (0)