Ignore:
Timestamp:
May 31, 2012, 1:25:16 PM (14 years ago)
Author:
Michael Ankele <ankele@…>
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)
Message:

DiscreteValueTest uses new Value class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parameters/unittests/ContinuousValueTest.cpp

    r9b5eb0 r3c5ef5  
    2424#include <cppunit/ui/text/TestRunner.h>
    2525
    26 #include "Parameters/ContinuousValue.hpp"
     26#include "Parameters/Value.hpp"
    2727
    2828#ifdef HAVE_TESTRUNNER
     
    5757{
    5858  // create instance
    59   ContinuousValue<int> test(*ValidIntRange);
     59  Value<int> test(*ValidIntRange);
    6060
    6161  // checking valid values
     
    7676{
    7777  // create instance
    78   ContinuousValue<int> test(*ValidIntRange);
     78  Value<int> test(*ValidIntRange);
    7979
    8080  // checking valid values
     
    9696  {
    9797    // create instance
    98     ContinuousValue<int> test(*ValidIntRange);
     98    Value<int> test(*ValidIntRange);
    9999
    100100    // extending range and checking
     
    108108  {
    109109    // create instance
    110     ContinuousValue<int> test(*ValidIntRange);
     110    Value<int> test(*ValidIntRange);
    111111
    112112    // lowering range with set value
     
    135135{
    136136  // create instance
    137   ContinuousValue<int> test(*ValidIntRange);
     137  Value<int> test(*ValidIntRange);
    138138
    139139  // unset calling of get, throws
     
    168168{
    169169  // create instance
    170   ContinuousValue<int> test(*ValidIntRange);
     170  Value<int> test(*ValidIntRange);
    171171
    172172  // unset calling of get, throws
     
    200200  {
    201201    // create instance
    202     ContinuousValue<int> test(*ValidIntRange);
    203     ContinuousValue<int> instance(*ValidIntRange);
     202    Value<int> test(*ValidIntRange);
     203    Value<int> instance(*ValidIntRange);
    204204    test.set(1);
    205205    instance.set(1);
     
    219219  }
    220220  {
    221     ContinuousValue<int> test(*ValidIntRange);
     221    Value<int> test(*ValidIntRange);
    222222    range<int> OtherValidIntRange(1,5);
    223     ContinuousValue<int> instance(OtherValidIntRange);
     223    Value<int> instance(OtherValidIntRange);
    224224
    225225    test.set(1);
     
    282282{
    283283  // create instance
    284   ContinuousValue<Vector> test(*ValidVectorRange);
     284  Value<Vector> test(*ValidVectorRange);
    285285
    286286  // checking valid values
     
    314314  {
    315315    // create instance
    316     ContinuousValue<Vector> test(*ValidVectorRange);
     316    Value<Vector> test(*ValidVectorRange);
    317317
    318318    // extending range and checking
     
    326326  {
    327327    // create instance
    328     ContinuousValue<Vector> test(*ValidVectorRange);
     328    Value<Vector> test(*ValidVectorRange);
    329329
    330330    // lowering range with set value
     
    353353{
    354354  // create instance
    355   /*ContinuousValue<Vector> test(*ValidVectorRange);
     355  /*Value<Vector> test(*ValidVectorRange);
    356356
    357357  // unset calling of get, throws
     
    387387{
    388388  // create instance
    389   ContinuousValue<Vector> test(*ValidVectorRange);
     389  Value<Vector> test(*ValidVectorRange);
    390390
    391391  // unset calling of get, throws
     
    422422  {
    423423    // create instance
    424     ContinuousValue<Vector> test(*ValidVectorRange);
    425     ContinuousValue<Vector> instance(*ValidVectorRange);
     424    Value<Vector> test(*ValidVectorRange);
     425    Value<Vector> instance(*ValidVectorRange);
    426426    test.set(Vector(5,6,7));
    427427    instance.set(Vector(5,6,7));
     
    441441  }
    442442  {
    443     ContinuousValue<Vector> test(*ValidVectorRange);
     443    Value<Vector> test(*ValidVectorRange);
    444444    range<Vector> OtherValidVectorRange(Vector(0,1,2), Vector(20,21,22));
    445     ContinuousValue<Vector> instance(OtherValidVectorRange);
     445    Value<Vector> instance(OtherValidVectorRange);
    446446
    447447    test.set(Vector(1,2,3));
Note: See TracChangeset for help on using the changeset viewer.