<commit_before>// 8 july 2014

package ui

// This file is called zz_test.go to keep it separate from the other files in this package (and because go test won't accept just test.go)

import (
	"testing"
)

func TestPackage(t *testing.T) {
	go func() {
		w := GetNewWindow(Do, "Hello", 320, 240)
		done := make(chan struct{})
		Wait(Do, w.OnClosing(func(Doer) bool {
			done <- struct{}{}
			return true
		}))
		Wait(Do, w.Show())
		<-done
	}()
	err := Go()
	if err != nil {
		t.Error(err)
	}
}
<commit_msg>Fixed runtime crashes for now. Whee, we have a window again!<commit_after>// 8 july 2014

package ui

// This file is called zz_test.go to keep it separate from the other files in this package (and because go test won't accept just test.go)

import (
	"testing"
)

func TestPackage(t *testing.T) {
	go func() {
		w := GetNewWindow(Do, "Hello", 320, 240)
		done := make(chan struct{})
//		Wait(Do, w.OnClosing(func(Doer) bool {
//			done <- struct{}{}
//			return true
//		}))
		Wait(Do, w.Show())
		<-done
	}()
	err := Go()
	if err != nil {
		t.Error(err)
	}
}

{'fraction_non_alphanumeric': 0.15651358950328023, 'fraction_numerical': 0.020618556701030927, 'mean_word_length': 3.13953488372093, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1149689', 'n_tokens_mistral': 446, 'n_tokens_neox': 398, 'n_words': 132}