Ignore:
Timestamp:
Feb 20, 2006, 10:45:34 AM (16 years ago)
Author:
Peter
Message:

generalised binary functionality in Target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/target_test.cc

    r509 r514  
    6060    *error << "Error: target(20)!=2" << std::endl;
    6161  }
    62   if (!target.one(0)){
     62  if (!target.binary(0)){
    6363    ok=false;
    64     *error << "Error: target.one(0) not true" << std::endl;
     64    *error << "Error: target.binary(0) not true" << std::endl;
    6565  }   
    66   if (target.one(20)){
     66  if (target.binary(20)){
    6767    ok=false;
    68     *error << "Error: target.one(20) not false" << std::endl;
     68    *error << "Error: target.binary(20) not false" << std::endl;
    6969  }   
    70   target.set_one(2);
    71   if (!target.one(20)){
     70  target.set_binary(2,true);
     71  if (!target.binary(20)){
    7272    ok=false;
    73     *error << "Error: target.one(20) not true" << std::endl;
     73    *error << "Error: target.binary(20) not true" << std::endl;
    7474  }   
    7575  std::ifstream is("data/rank_target.txt");
Note: See TracChangeset for help on using the changeset viewer.