package main

import (
	"testing"
)

func TestRandomCodePoint(t *testing.T) {
	for _, b := range Blocks {
		var cp rune
		cp = b.RandomCodePoint()

		if cp < b.start || cp > b.end {
			t.Fail()
		}
	}
}

func BenchmarkRandomCodePoint(b *testing.B) {
	testBlock := &UnicodeBlock{0x0000, 0x10ffff}
	for i := 0; i < b.N; i++ {
		testBlock.RandomCodePoint()
	}
}

package main

import (
	"testing"
)

func TestRandomCodePoint(t *testing.T) {
	for _, b := range Blocks {
		var cp rune
		cp = b.RandomCodePoint()

		if cp < b.start || cp > b.end {
			t.Fail()
		}
	}
}

func BenchmarkRandomCodePoint(b *testing.B) {
	testBlock := Blocks["math_alnum"]
	for i := 0; i < b.N; i++ {
		testBlock.RandomCodePoint()
	}
}

--- 
+++ 
@@ -16,7 +16,7 @@
 }
 
 func BenchmarkRandomCodePoint(b *testing.B) {
-	testBlock := Blocks["math_alnum"]
+	testBlock := &UnicodeBlock{0x0000, 0x10ffff}
 	for i := 0; i < b.N; i++ {
 		testBlock.RandomCodePoint()
 	}
Use block spanning all unicode planes for BenchmarkRandomCodePoint
