Skip to content

Commit

Permalink
Fixed invalid foreach syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 9, 2015
1 parent 9ded052 commit 8de0f46
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TEST(RifEclipseInputFileToolsTest, FaultFaces)
faceTexts << "X" << "X+" << "I" << "I+" << "x" << "x+" << "i" << "i+";

cvf::StructGridInterface::FaceEnum faceType;
for each (QString text in faceTexts)
foreach (QString text, faceTexts)
{
faceType = RifEclipseInputFileTools::faceEnumFromText(text);
EXPECT_EQ(cvf::StructGridInterface::POS_I, faceType);
Expand All @@ -28,7 +28,7 @@ TEST(RifEclipseInputFileToolsTest, FaultFaces)
faceTexts << "X-" << "I-" << "x-" << "i-";

cvf::StructGridInterface::FaceEnum faceType;
for each (QString text in faceTexts)
foreach(QString text, faceTexts)
{
faceType = RifEclipseInputFileTools::faceEnumFromText(text);
EXPECT_EQ(cvf::StructGridInterface::NEG_I, faceType);
Expand All @@ -40,7 +40,7 @@ TEST(RifEclipseInputFileToolsTest, FaultFaces)
faceTexts << "Y" << "Y+" << "J" << "J+" << "y" << "y+" << "j" << "j+";

cvf::StructGridInterface::FaceEnum faceType;
for each (QString text in faceTexts)
foreach(QString text, faceTexts)
{
faceType = RifEclipseInputFileTools::faceEnumFromText(text);
EXPECT_EQ(cvf::StructGridInterface::POS_J, faceType);
Expand All @@ -52,7 +52,7 @@ TEST(RifEclipseInputFileToolsTest, FaultFaces)
faceTexts << "Y-" << "J-" << "y-" << "j-";

cvf::StructGridInterface::FaceEnum faceType;
for each (QString text in faceTexts)
foreach(QString text, faceTexts)
{
faceType = RifEclipseInputFileTools::faceEnumFromText(text);
EXPECT_EQ(cvf::StructGridInterface::NEG_J, faceType);
Expand All @@ -64,7 +64,7 @@ TEST(RifEclipseInputFileToolsTest, FaultFaces)
faceTexts << "Z" << "Z+" << "K" << "k+" << "z" << "z+" << "k" << "k+";

cvf::StructGridInterface::FaceEnum faceType;
for each (QString text in faceTexts)
foreach(QString text, faceTexts)
{
faceType = RifEclipseInputFileTools::faceEnumFromText(text);
EXPECT_EQ(cvf::StructGridInterface::POS_K, faceType);
Expand All @@ -76,7 +76,7 @@ TEST(RifEclipseInputFileToolsTest, FaultFaces)
faceTexts << "Z-" << "K-" << "z-" << "k-";

cvf::StructGridInterface::FaceEnum faceType;
for each (QString text in faceTexts)
foreach(QString text, faceTexts)
{
faceType = RifEclipseInputFileTools::faceEnumFromText(text);
EXPECT_EQ(cvf::StructGridInterface::NEG_K, faceType);
Expand All @@ -90,7 +90,7 @@ TEST(RifEclipseInputFileToolsTest, FaultFaces)
faceTexts << "Z--" << "z--" << "-k-" << " -k " << " +k- ";

cvf::StructGridInterface::FaceEnum faceType;
for each (QString text in faceTexts)
foreach(QString text, faceTexts)
{
faceType = RifEclipseInputFileTools::faceEnumFromText(text);
EXPECT_EQ(cvf::StructGridInterface::NO_FACE, faceType);
Expand All @@ -103,7 +103,7 @@ TEST(RifEclipseInputFileToolsTest, FaultFaces)
faceTexts << " X" << " X+ " << " I " << " i+ ";

cvf::StructGridInterface::FaceEnum faceType;
for each (QString text in faceTexts)
foreach(QString text, faceTexts)
{
faceType = RifEclipseInputFileTools::faceEnumFromText(text);
EXPECT_EQ(cvf::StructGridInterface::POS_I, faceType);
Expand Down

0 comments on commit 8de0f46

Please sign in to comment.