<commit_before>#!/usr/bin/env lua

addonData = { ["Version"] = "1.0",
	["Author"] = "opussf",
}

require "wowTest"

test.outFileName = "testOut.xml"

-- require the file to test
package.path = "../src/?.lua;'" .. package.path
require "c"
require "chat"

CALC_Frame = CreateFrame()
OriginalSendChatMessage = SendChatMessage
OriginalBNSendWhisper = BNSendWhisper

function test.before()
	calc.stack = {}
	calc.useDegree = nil
	calc.VARIABLES_LOADED()
	calc_macros={}
	calc_settings={}
end
function test.after()
	SendChatMessage = OriginalSendChatMessage
	BNSendWhisper = OriginalBNSendWhisper
end

function test.test_MSG_ADDONNAME()
	assert( CALC_MSG_ADDONNAME )
end
function test.test_MSG_VERSION()
	-- just make sure this is assigned
	assert( CALC_MSG_VERSION )
end
function test.test_MSG_AUTHOR()
	assert( CALC_MSG_AUTHOR )
end
function test.test_Command()
	calc.Command()<commit_msg>testFix: Use ParseTOC<commit_after>#!/usr/bin/env lua

addonData = { ["Version"] = "1.0",
	["Author"] = "opussf",
}

require "wowTest"

test.outFileName = "testOut.xml"

ParseTOC( "../src/calc.toc" )

CALC_Frame = CreateFrame()
OriginalSendChatMessage = SendChatMessage
OriginalBNSendWhisper = BNSendWhisper

function test.before()
	calc.stack = {}
	calc.useDegree = nil
	calc.VARIABLES_LOADED()
	calc_macros={}
	calc_settings={}
end
function test.after()
	SendChatMessage = OriginalSendChatMessage
	BNSendWhisper = OriginalBNSendWhisper
end

function test.test_MSG_ADDONNAME()
	assert( CALC_MSG_ADDONNAME )
end
function test.test_MSG_VERSION()
	-- just make sure this is assigned
	assert( CALC_MSG_VERSION )
end
function test.test_MSG_AUTHOR()
	-- just make sure this is assigned
	assert( CALC_MSG_AUTHOR )
end
function test.test_Command()
	calc.Command()
{'fraction_non_alphanumeric': 0.11774842044801838, 'fraction_numerical': 0.0022975301550832855, 'mean_word_length': 5.428044280442805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2678186', 'n_tokens_mistral': 643, 'n_tokens_neox': 633, 'n_words': 135}