Merge release-5-0 into master
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 22 May 2015 10:45:31 +0000 (13:45 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Fri, 22 May 2015 10:46:40 +0000 (13:46 +0300)
Conflicts:
    src/gromacs/selection/tests/selectioncollection.cpp

Took both tests added in the different branches at the same location.

Change-Id: I305dd8e37373c3f913b3e86d0ddb286926c3d0db

1  2 
src/gromacs/selection/params.cpp
src/gromacs/selection/sm_same.cpp
src/gromacs/selection/tests/selectioncollection.cpp

Simple merge
Simple merge
index f17c17d2b3143ebe4b6bb9af1a9741ff65d454bc,6a40ad7462b8411f47554e27e0a9c69022b0d634..8521a27d444767bb0e6bedd6768cb07f3564174e
@@@ -1128,47 -1087,16 +1154,57 @@@ TEST_F(SelectionCollectionDataTest, Han
  }
  
  
+ TEST_F(SelectionCollectionDataTest, HandlesEmptyReferenceForSame)
+ {
+     static const char * const selections[] = {
+         "same residue as none",
+         "same resname as none"
+     };
+     runTest("simple.gro", selections);
+ }
 +TEST_F(SelectionCollectionDataTest, HandlesPositionModifiersForKeywords)
 +{
 +    static const char * const selections[] = {
 +        "res_cog x > 2",
 +        "name CB and res_cog y > 2.5"
 +    };
 +    setFlags(TestFlags() | efTestEvaluation);
 +    runTest("simple.gro", selections);
 +}
 +
 +
 +TEST_F(SelectionCollectionDataTest, HandlesPositionModifiersForMethods)
 +{
 +    static const char * const selections[] = {
 +        "res_cog distance from cog of resnr 1 < 2",
 +        "res_cog within 2 of cog of resnr 1"
 +    };
 +    setFlags(TestFlags() | efTestEvaluation);
 +    runTest("simple.gro", selections);
 +}
 +
 +
 +TEST_F(SelectionCollectionDataTest, HandlesKeywordOfPositions)
 +{
 +    static const char * const selections[] = {
 +        "x < y of cog of resnr 2"
 +    };
 +    setFlags(TestFlags() | efTestEvaluation);
 +    runTest("simple.gro", selections);
 +}
 +
 +TEST_F(SelectionCollectionDataTest, HandlesKeywordOfPositionsInArithmetic)
 +{
 +    static const char * const selections[] = {
 +        "x - y of cog of resnr 2 < 0"
 +    };
 +    setFlags(TestFlags() | efTestEvaluation);
 +    runTest("simple.gro", selections);
 +}
 +
 +
  TEST_F(SelectionCollectionDataTest, HandlesNumericComparisons)
  {
      static const char * const selections[] = {