INNER CODE UNIT · Go

TestChain_Generate

mb-14/gomarkov · gomarkov_test.go:174

func TestChain_Generate(t *testing.T) {
	type args struct {
		current NGram
	}
	tests := []struct {
		name    string
		chain   []byte
		args    args
		want    string
		wantErr bool
	}{
		{
			"Start of simple chain",
			[]byte(`{"int":1,"spool_map":{"^":0,"Test":1,"$":2},"freq_mat":{"0":{"1":1},"1":{"2":1}}}`),
			args{current: NGram{"^"}},
			"Test",
			false,
		},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…