<commit_before>#encoding: utf-8
require_relative 'lib/pdist'
require 'test/unit'

class TestRearrangementScore < Test::Unit::TestCase

	A = %w(a b c)
	C = A.reverse

	def test_deviation
		assert_equal(0, PDist::deviation(A,A))
		assert_equal(1, PDist::deviation(A,C))
		assert_equal(1, PDist::deviation(%w(a b), %w(b a)))
	end<commit_msg>renamed unit test class<commit_after>#encoding: utf-8
require_relative 'lib/pdist'
require 'test/unit'

class TestPDist < Test::Unit::TestCase

	A = %w(a b c)
	C = A.reverse

	def test_deviation
		assert_equal(0, PDist::deviation(A,A))
		assert_equal(1, PDist::deviation(A,C))
		assert_equal(1, PDist::deviation(%w(a b), %w(b a)))
	end
{'fraction_non_alphanumeric': 0.1575037147102526, 'fraction_numerical': 0.01188707280832095, 'mean_word_length': 6.020833333333333, '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': '6393253', 'n_tokens_mistral': 283, 'n_tokens_neox': 270, 'n_words': 56}