Changeset 3c5ef5 for src/Parameters/unittests/ContinuousValueTest.cpp
- Timestamp:
- May 31, 2012, 1:25:16 PM (14 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, Candidate_v1.7.0, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 0b84b9
- Parents:
- 9b5eb0
- git-author:
- Michael Ankele <ankele@…> (04/16/12 12:56:12)
- git-committer:
- Michael Ankele <ankele@…> (05/31/12 13:25:16)
- File:
-
- 1 edited
-
src/Parameters/unittests/ContinuousValueTest.cpp (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parameters/unittests/ContinuousValueTest.cpp
r9b5eb0 r3c5ef5 24 24 #include <cppunit/ui/text/TestRunner.h> 25 25 26 #include "Parameters/ ContinuousValue.hpp"26 #include "Parameters/Value.hpp" 27 27 28 28 #ifdef HAVE_TESTRUNNER … … 57 57 { 58 58 // create instance 59 ContinuousValue<int> test(*ValidIntRange);59 Value<int> test(*ValidIntRange); 60 60 61 61 // checking valid values … … 76 76 { 77 77 // create instance 78 ContinuousValue<int> test(*ValidIntRange);78 Value<int> test(*ValidIntRange); 79 79 80 80 // checking valid values … … 96 96 { 97 97 // create instance 98 ContinuousValue<int> test(*ValidIntRange);98 Value<int> test(*ValidIntRange); 99 99 100 100 // extending range and checking … … 108 108 { 109 109 // create instance 110 ContinuousValue<int> test(*ValidIntRange);110 Value<int> test(*ValidIntRange); 111 111 112 112 // lowering range with set value … … 135 135 { 136 136 // create instance 137 ContinuousValue<int> test(*ValidIntRange);137 Value<int> test(*ValidIntRange); 138 138 139 139 // unset calling of get, throws … … 168 168 { 169 169 // create instance 170 ContinuousValue<int> test(*ValidIntRange);170 Value<int> test(*ValidIntRange); 171 171 172 172 // unset calling of get, throws … … 200 200 { 201 201 // create instance 202 ContinuousValue<int> test(*ValidIntRange);203 ContinuousValue<int> instance(*ValidIntRange);202 Value<int> test(*ValidIntRange); 203 Value<int> instance(*ValidIntRange); 204 204 test.set(1); 205 205 instance.set(1); … … 219 219 } 220 220 { 221 ContinuousValue<int> test(*ValidIntRange);221 Value<int> test(*ValidIntRange); 222 222 range<int> OtherValidIntRange(1,5); 223 ContinuousValue<int> instance(OtherValidIntRange);223 Value<int> instance(OtherValidIntRange); 224 224 225 225 test.set(1); … … 282 282 { 283 283 // create instance 284 ContinuousValue<Vector> test(*ValidVectorRange);284 Value<Vector> test(*ValidVectorRange); 285 285 286 286 // checking valid values … … 314 314 { 315 315 // create instance 316 ContinuousValue<Vector> test(*ValidVectorRange);316 Value<Vector> test(*ValidVectorRange); 317 317 318 318 // extending range and checking … … 326 326 { 327 327 // create instance 328 ContinuousValue<Vector> test(*ValidVectorRange);328 Value<Vector> test(*ValidVectorRange); 329 329 330 330 // lowering range with set value … … 353 353 { 354 354 // create instance 355 /* ContinuousValue<Vector> test(*ValidVectorRange);355 /*Value<Vector> test(*ValidVectorRange); 356 356 357 357 // unset calling of get, throws … … 387 387 { 388 388 // create instance 389 ContinuousValue<Vector> test(*ValidVectorRange);389 Value<Vector> test(*ValidVectorRange); 390 390 391 391 // unset calling of get, throws … … 422 422 { 423 423 // create instance 424 ContinuousValue<Vector> test(*ValidVectorRange);425 ContinuousValue<Vector> instance(*ValidVectorRange);424 Value<Vector> test(*ValidVectorRange); 425 Value<Vector> instance(*ValidVectorRange); 426 426 test.set(Vector(5,6,7)); 427 427 instance.set(Vector(5,6,7)); … … 441 441 } 442 442 { 443 ContinuousValue<Vector> test(*ValidVectorRange);443 Value<Vector> test(*ValidVectorRange); 444 444 range<Vector> OtherValidVectorRange(Vector(0,1,2), Vector(20,21,22)); 445 ContinuousValue<Vector> instance(OtherValidVectorRange);445 Value<Vector> instance(OtherValidVectorRange); 446 446 447 447 test.set(Vector(1,2,3));
Note:
See TracChangeset
for help on using the changeset viewer.
