TheGOro / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Error in documentation #354

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First, define a fixture class. By convention, you should give it the name 
FooTest where Foo is the class being tested.

class QueueTest : public ::testing::Test {
 protected:
  virtual void SetUp() {
    q1_.Enqueue(1); // Should be q0
    q2_.Enqueue(2); // Should be q1
    q2_.Enqueue(3);
  }

  // virtual void TearDown() {}

  Queue<int> q0_;
  Queue<int> q1_;
  Queue<int> q2_;
};

Original issue reported on code.google.com by vinitsa...@gmail.com on 9 Feb 2011 at 9:47

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 24 Feb 2011 at 3:47

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 24 Feb 2011 at 3:48

GoogleCodeExporter commented 9 years ago
I looked at 
http://code.google.com/p/googletest/wiki/Primer#Test_Fixtures:_Using_the_Same_Da
ta_Configuration_for_Multiple_Te again.  The example is correct.  Nothing to be 
fixed.

Original comment by w...@google.com on 24 Feb 2011 at 7:54