Sha256: c6f008d42fcb046c297734cc2e4dae5753fab39962ba0facbda4ded179046955

Contents?: true

Size: 588 Bytes

Versions: 155

Compression:

Stored size: 588 Bytes

Contents

package strand

import "testing"

const targetTestVersion = 3

func TestTestVersion(t *testing.T) {
	if testVersion != targetTestVersion {
		t.Fatalf("Found testVersion = %v, want %v", testVersion, targetTestVersion)
	}
}

func TestRNATranscription(t *testing.T) {
	for _, test := range rnaTests {
		if actual := ToRNA(test.input); actual != test.expected {
			t.Errorf("ToRNA(%s): %s, expected %s",
				test.input, actual, test.expected)
		}
	}
}

func BenchmarkRNATranscription(b *testing.B) {
	for i := 0; i < b.N; i++ {
		for _, test := range rnaTests {
			ToRNA(test.input)
		}
	}
}

Version data entries

155 entries across 155 versions & 1 rubygems

Version Path
trackler-2.2.1.56 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.55 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.54 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.53 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.52 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.51 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.50 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.49 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.48 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.47 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.46 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.45 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.44 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.43 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.42 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.41 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.40 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.39 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.38 tracks/go/exercises/rna-transcription/rna_transcription_test.go
trackler-2.2.1.37 tracks/go/exercises/rna-transcription/rna_transcription_test.go