Commit 7817a8d2 authored by Boris Mühmer's avatar Boris Mühmer
Browse files

struggling with some problems

parent 36308c41
Loading
Loading
Loading
Loading
+24 −1
Original line number Diff line number Diff line
@@ -18,7 +18,30 @@ func TestBasic(t *testing.T) {
	t.Log("goroutine is done.")
}

func TestSequence(t *testing.T) {
func TestSequenceVeryPrimitive(t *testing.T) {
}

func TestSequencePrimitive(t *testing.T) {

	t.Skip("test is broken")

	seq := make(chan int)

	go func(n int, c chan int) {
		for i := 0; i < n; i++ {
			c <- i
			t.Logf("Pushed: %d", i)
		}
	}(5, seq)

	for s := range seq {
		t.Logf("Sequence: %d", s)
	}
}

func TestSequenceFunctions(t *testing.T) {

	t.Skip("test is broken")

	l0 := []int{1, 1, 1, 1, 1}
	if r := SequenceOf(1).Take(5); reflect.DeepEqual(r, l0) {
+1 −1
Original line number Diff line number Diff line
module repositories.muehmer.net/bsmrgo/playground

go 1.14
go 1.13

require golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d