<commit_before>#!/usr/bin/ruby

# Test unitaire Basedonnee.rb
# Auteur : <NAME>


require 'test/unit'
load './class/basedonnee.class.rb'

#Vos tests dans ce fichier
#https://github.com/olbrich/ruby-units


class Testbasedonnee < Test::Unit::TestCase

	def test_bdd_creation
		kBase = Basedonnee.creer('test.db')
		assert_equal(true, File.exist?('test.db'))
	end

	def test_bdd_key

		i = 0
<commit_msg>Chargement de la bonne classe pour tests Registre<commit_after>#!/usr/bin/ruby

# Test unitaire Basedonnee.rb
# Auteur : <NAME>, <NAME>


require 'test/unit'
load './class/registre.class.rb'

#Vos tests dans ce fichier
#https://github.com/olbrich/ruby-units


class Testbasedonnee < Test::Unit::TestCase

	def test_bdd_creation
		kBase = Basedonnee.creer('test.db')
		assert_equal(true, File.exist?('test.db'))
	end

	def test_bdd_key

		i = 0

{'fraction_non_alphanumeric': 0.1359338061465721, 'fraction_numerical': 0.002364066193853428, 'mean_word_length': 4.3949044585987265, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '782222', 'n_tokens_mistral': 352, 'n_tokens_neox': 326, 'n_words': 68}