package main

import (
	"bytes"
	"strings"
	"testing"
)

func TestPrintIconTest(t *testing.T) {
	var buf bytes.Buffer
	printIconTestTo(&buf)
	out := buf.String()
	if !strings.Contains(out, "Clear/Sunny") {
		t.Fatalf("expected clear/sunny entry in icon test output")
	}
	if !strings.Contains(out, "Rain Percent Chance") {
		t.Fatalf("expected rain percent chance entry in icon test output")
	}
	if !strings.Contains(out, "Snow Percent Chance") {
		t.Fatalf("expected snow percent chance entry in icon test output")
	}
}
