-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
196 assertion violated in kwprobabilitytabletest #227
196 assertion violated in kwprobabilitytabletest #227
Conversation
e032fb4
to
b19d9ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a question
// Parametrage de l'arret pour la memoire | ||
//MemSetAllocIndexExit(3391); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep this commented line ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cela m'a été difficile de trouver l'endroit ou paramétrer cette ligne, puisque le framework GoogleTest ne semble pas avoir de main().
Je vais rajouter un commentaire.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
Ameliorations dans le framework des tests unitaires: - FileCompareForTest: prise en compte des erreurs dans le cas de nombres de lignes different entre Test et Ref - TestAndCompareResults: parametrage de l'arrete de la memoire (commente) s'il y a des fuites memoire a identifier Correction des test unitaires: - KWClass::Test: nommage des variable de type TextList desormais different de celui des variable de type text - KWProbabilityTable::Test: correction des methdoes d'initialisation CreateTestAttribute (prise en compte des information des nouveaux prior) Nouveaux resultats de references pour KWData_KWClass.txt et KWData_KWClassDomain.txt
Contexte: - les methodes de KWClass et KWClassDomain renvoie false - si entite cree ou renomme existe (pour Insert et Rename) - si entite detyruite n'existe pas (pour Remove). - ce comportement a ete source de bug (fuite memoire dans KWClass::CreateClass) - n'est jamais exploite (sauf quelques rares fois avec bOk = Insert... suivi de assert(bOk) Amélioration - passage de ces methode en void - le controle se fait desormais pas un require - pas d'impact sur le code existant (sauf quelques rare micro-corrections) - Methodes concernees - KWClassDomain - InsertClass - RemoveClass - DeleteClass - RenameClass - RenameAttribute - InsertDomain - RemoveDomain - DeleteDomain - RenameDomain - KWClass - InsertAttribute - InsertAttributeBefore, InsertAttributeAfter - InsertAttributeInBlock - RenameAttribute Tests complets LearningTest passes avec succes
b19d9ce
to
a98d58a
Compare
Correction des bugs des tests unitaires
Plus au passage, simplification des méthode Insert, Rename, Remove de KWClass et KWClassDomain