<commit_before>package region

import (
    "testing"
)

func TestRenderSequenceRegion(t *testing.T) {
    const iterateLimit = 40
    mockSequence := &MockProxySequence{}
    mockRegion := &MockNumerics{
        MockSequence: mockSequence,
    }
    // Not inspecting contract re DrawingContext
    RenderSequenceRegion(mockRegion, nil)

    if !mockRegion.TRegionSequence {
        t.Error("Expected methods not called on mockRegion:", mockRegion)
    }

    sequenceOkay := mockSequence.TExtrinsically && mockSequence.TSequence
    if !sequenceOkay {
        t.Error("Expected methods not called on mockSequence:", mockSequence)
    }
}

func TestSequenceCollapse(t *testing.T) {
    const iterateLimit = 40

    mockSequence := &MockProxySequence{}
    mockRegion := &MockNumerics{
        MockSequence: mockSequence,<commit_msg>Fix failing unit tests for region<commit_after>package region

import (
    "testing"
    "github.com/johnny-morrice/godelbrot/draw"
)

func TestRenderSequenceRegion(t *testing.T) {
    const iterateLimit = 40
    mockSequence := &MockProxySequence{}
    mockRegion := &MockNumerics{
        MockSequence: mockSequence,
    }
    // Not inspecting contract re DrawingContext
    context := draw.NewMockDrawingContext(iterateLimit)
    RenderSequenceRegion(mockRegion, context)

    if !mockRegion.TRegionSequence {
        t.Error("Expected methods not called on mockRegion:", mockRegion)
    }

    sequenceOkay := mockSequence.TExtrinsically && mockSequence.TSequence
    if !sequenceOkay {
        t.Error("Expected methods not called on mockSequence:", mockSequence)
    }
}

func TestSequenceCollapse(t *testing.T) {
    const iterateLimit = 40

    mockSequence := &MockProxySequence{}
    mockRegion := &MockNumerics{
        MockSequence: mockSequence,
{'fraction_non_alphanumeric': 0.09035136642498606, 'fraction_numerical': 0.004461795872838818, 'mean_word_length': 3.6476683937823835, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3792704', 'n_tokens_mistral': 519, 'n_tokens_neox': 493, 'n_words': 119}