@ -8,7 +8,7 @@ import (
solutions "../../solutions" // This line is not necessary when testing an exercise with a program
)
func TestIsAnagram(t *testing.T) {
func TestAnagram(t *testing.T) {
type node struct {
s string
t string
@ -11,7 +11,7 @@ type node struct {
big, little string
}
func TestDoppelGanger(t *testing.T) {
func TestDoppelGangerProg(t *testing.T) {
table := []node{}
table = append(table,
@ -7,7 +7,7 @@ import (
"github.com/01-edu/z01"
func TestFindPrevPrime(t *testing.T) {
func TestFindPrevPrimeProg(t *testing.T) {
array := []int{5, 4, 1}
for i := 0; i < 7; i++ {
array = append(array, z01.RandIntBetween(0, 99999))
func TestHalf_contest(t *testing.T) {
func TestHalfContestProg(t *testing.T) {
h1 int
m1 int
@ -9,7 +9,7 @@ import (
solutions "../../solutions"
func TestNRune(t *testing.T) {
func TestNRuneProg(t *testing.T) {
word string
n int
func TestSlice(t *testing.T) {
func TestSliceProg(t *testing.T) {
arr := [][]interface{}{
{
[]string{"coding", "algorithm", "ascii", "package", "golang"},
func TestSweerproblem(t *testing.T) {
func TestSweetProblem(t *testing.T) {
red int
green int