Mercurial > forge
changeset 9846:6b76ad220e06 octave-forge
ga: test private functions with unit tests too
Probably these (as the others) private functions should be converted to
subfunctions. Thus in the future this commit will be "reverted" and these
private (sub)functions will be tested in the file of the main function.
author | slackydeb |
---|---|
date | Sat, 24 Mar 2012 16:33:56 +0000 |
parents | 3b7136683b6f |
children | d0a89bfd8417 |
files | main/ga/inst/test_ga.m |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main/ga/inst/test_ga.m Sat Mar 24 16:33:44 2012 +0000 +++ b/main/ga/inst/test_ga.m Sat Mar 24 16:33:56 2012 +0000 @@ -20,7 +20,7 @@ ## Author: Luca Favatella <slackydeb@gmail.com> ## Created: March 2012 -## Version: 0.2 +## Version: 0.3 ## Creation test gacreationuniform @@ -43,3 +43,7 @@ ## Genetic Algorithm test gaoptimset test ga + +## Private functions +test __ga_initial_population__ +test __ga_problem_update_state_at_each_generation__