<commit_before>package tradingdays

import (
	"fmt"
	"testing"
	"time"

	"github.com/toomore/gogrs/utils"
)

func TestReadCSV(*testing.T) {
	//readCSV()
	fmt.Println(exceptDays)
	fmt.Println(time.Date(2015, 9, 29, 0, 0, 0, 0, time.Local))
	fmt.Println(IsOpen(2015, 4, 17, time.Local))
	fmt.Println(IsOpen(2015, 4, 18, time.Local))
	fmt.Println(IsOpen(2015, 4, 20, time.Local))
	fmt.Println(IsOpen(2015, 4, 25, time.Local))
}

func BenchmarkIsOpen(t *testing.B) {
	for i := 0; i < t.N; i++ {
		IsOpen(2015, 4, 19, utils.TaipeiTimeZone)
	}
}<commit_msg>Changed in testing.<commit_after>package tradingdays

import (
	"fmt"
	"testing"
	"time"

	"github.com/toomore/gogrs/utils"
)

func TestIsOpen(t *testing.T) {
	fmt.Println(exceptDays)
	if IsOpen(2015, 4, 17, time.Local) != true {
		t.Error("Should be `true`")
	}
	if IsOpen(2015, 4, 18, time.Local) != false {
		t.Error("Should be `false`")
	}
	if IsOpen(2015, 4, 20, time.Local) != true {
		t.Error("Should be `true`")
	}
	if IsOpen(2015, 5, 1, time.Local) != false {
		t.Error("Should be `false`")
	}
}

func BenchmarkIsOpen(t *testing.B) {
	for i := 0; i < t.N; i++ {
		IsOpen(2015, 4, 19, utils.TaipeiTimeZone)
	}
}
{'fraction_non_alphanumeric': 0.18717948717948718, 'fraction_numerical': 0.07008547008547009, 'mean_word_length': 4.11353711790393, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1056379', 'n_tokens_mistral': 599, 'n_tokens_neox': 512, 'n_words': 110}