HomeSort by relevance Sort by last modified time
    Searched refs:IsPrime (Results 1 - 25 of 32) sorted by null

1 2

  /external/chromium/testing/gtest/samples/
sample1_unittest.cc 116 // Tests IsPrime()
122 EXPECT_FALSE(IsPrime(-1));
123 EXPECT_FALSE(IsPrime(-2));
124 EXPECT_FALSE(IsPrime(INT_MIN));
129 EXPECT_FALSE(IsPrime(0));
130 EXPECT_FALSE(IsPrime(1));
131 EXPECT_TRUE(IsPrime(2));
132 EXPECT_TRUE(IsPrime(3));
137 EXPECT_FALSE(IsPrime(4));
138 EXPECT_TRUE(IsPrime(5))
    [all...]
sample1.h 41 bool IsPrime(int n);
sample6_unittest.cc 108 EXPECT_FALSE(this->table_->IsPrime(-5));
109 EXPECT_FALSE(this->table_->IsPrime(0));
110 EXPECT_FALSE(this->table_->IsPrime(1));
111 EXPECT_FALSE(this->table_->IsPrime(4));
112 EXPECT_FALSE(this->table_->IsPrime(6));
113 EXPECT_FALSE(this->table_->IsPrime(100));
117 EXPECT_TRUE(this->table_->IsPrime(2));
118 EXPECT_TRUE(this->table_->IsPrime(3));
119 EXPECT_TRUE(this->table_->IsPrime(5));
120 EXPECT_TRUE(this->table_->IsPrime(7))
    [all...]
sample5_unittest.cc 117 // Tests IsPrime()
118 TEST_F(IntegerFunctionTest, IsPrime) {
120 EXPECT_TRUE(!IsPrime(-1));
121 EXPECT_TRUE(!IsPrime(-2));
122 EXPECT_TRUE(!IsPrime(INT_MIN));
125 EXPECT_TRUE(!IsPrime(0));
126 EXPECT_TRUE(!IsPrime(1));
127 EXPECT_TRUE(IsPrime(2));
128 EXPECT_TRUE(IsPrime(3));
131 EXPECT_TRUE(!IsPrime(4))
    [all...]
sample7_unittest.cc 82 EXPECT_FALSE(table_->IsPrime(-5));
83 EXPECT_FALSE(table_->IsPrime(0));
84 EXPECT_FALSE(table_->IsPrime(1));
85 EXPECT_FALSE(table_->IsPrime(4));
86 EXPECT_FALSE(table_->IsPrime(6));
87 EXPECT_FALSE(table_->IsPrime(100));
91 EXPECT_TRUE(table_->IsPrime(2));
92 EXPECT_TRUE(table_->IsPrime(3));
93 EXPECT_TRUE(table_->IsPrime(5));
94 EXPECT_TRUE(table_->IsPrime(7))
    [all...]
sample8_unittest.cc 62 virtual bool IsPrime(int n) const {
64 return precalc_impl_->IsPrime(n);
66 return on_the_fly_impl_->IsPrime(n);
122 EXPECT_FALSE(table_->IsPrime(-5));
123 EXPECT_FALSE(table_->IsPrime(0));
124 EXPECT_FALSE(table_->IsPrime(1));
125 EXPECT_FALSE(table_->IsPrime(4));
126 EXPECT_FALSE(table_->IsPrime(6));
127 EXPECT_FALSE(table_->IsPrime(100));
131 EXPECT_TRUE(table_->IsPrime(2))
    [all...]
prime_tables.h 48 virtual bool IsPrime(int n) const = 0;
58 virtual bool IsPrime(int n) const {
71 if (IsPrime(n)) return n;
89 virtual bool IsPrime(int n) const {
  /external/gtest/samples/
sample1_unittest.cc 116 // Tests IsPrime()
122 EXPECT_FALSE(IsPrime(-1));
123 EXPECT_FALSE(IsPrime(-2));
124 EXPECT_FALSE(IsPrime(INT_MIN));
129 EXPECT_FALSE(IsPrime(0));
130 EXPECT_FALSE(IsPrime(1));
131 EXPECT_TRUE(IsPrime(2));
132 EXPECT_TRUE(IsPrime(3));
137 EXPECT_FALSE(IsPrime(4));
138 EXPECT_TRUE(IsPrime(5))
    [all...]
sample1.h 41 bool IsPrime(int n);
sample6_unittest.cc 108 EXPECT_FALSE(this->table_->IsPrime(-5));
109 EXPECT_FALSE(this->table_->IsPrime(0));
110 EXPECT_FALSE(this->table_->IsPrime(1));
111 EXPECT_FALSE(this->table_->IsPrime(4));
112 EXPECT_FALSE(this->table_->IsPrime(6));
113 EXPECT_FALSE(this->table_->IsPrime(100));
117 EXPECT_TRUE(this->table_->IsPrime(2));
118 EXPECT_TRUE(this->table_->IsPrime(3));
119 EXPECT_TRUE(this->table_->IsPrime(5));
120 EXPECT_TRUE(this->table_->IsPrime(7))
    [all...]
sample5_unittest.cc 117 // Tests IsPrime()
118 TEST_F(IntegerFunctionTest, IsPrime) {
120 EXPECT_TRUE(!IsPrime(-1));
121 EXPECT_TRUE(!IsPrime(-2));
122 EXPECT_TRUE(!IsPrime(INT_MIN));
125 EXPECT_TRUE(!IsPrime(0));
126 EXPECT_TRUE(!IsPrime(1));
127 EXPECT_TRUE(IsPrime(2));
128 EXPECT_TRUE(IsPrime(3));
131 EXPECT_TRUE(!IsPrime(4))
    [all...]
sample7_unittest.cc 82 EXPECT_FALSE(table_->IsPrime(-5));
83 EXPECT_FALSE(table_->IsPrime(0));
84 EXPECT_FALSE(table_->IsPrime(1));
85 EXPECT_FALSE(table_->IsPrime(4));
86 EXPECT_FALSE(table_->IsPrime(6));
87 EXPECT_FALSE(table_->IsPrime(100));
91 EXPECT_TRUE(table_->IsPrime(2));
92 EXPECT_TRUE(table_->IsPrime(3));
93 EXPECT_TRUE(table_->IsPrime(5));
94 EXPECT_TRUE(table_->IsPrime(7))
    [all...]
sample8_unittest.cc 62 virtual bool IsPrime(int n) const {
64 return precalc_impl_->IsPrime(n);
66 return on_the_fly_impl_->IsPrime(n);
122 EXPECT_FALSE(table_->IsPrime(-5));
123 EXPECT_FALSE(table_->IsPrime(0));
124 EXPECT_FALSE(table_->IsPrime(1));
125 EXPECT_FALSE(table_->IsPrime(4));
126 EXPECT_FALSE(table_->IsPrime(6));
127 EXPECT_FALSE(table_->IsPrime(100));
131 EXPECT_TRUE(table_->IsPrime(2))
    [all...]
  /external/libvpx/libvpx/third_party/googletest/src/samples/
sample1_unittest.cc 116 // Tests IsPrime()
122 EXPECT_FALSE(IsPrime(-1));
123 EXPECT_FALSE(IsPrime(-2));
124 EXPECT_FALSE(IsPrime(INT_MIN));
129 EXPECT_FALSE(IsPrime(0));
130 EXPECT_FALSE(IsPrime(1));
131 EXPECT_TRUE(IsPrime(2));
132 EXPECT_TRUE(IsPrime(3));
137 EXPECT_FALSE(IsPrime(4));
138 EXPECT_TRUE(IsPrime(5))
    [all...]
sample1.h 41 bool IsPrime(int n);
sample6_unittest.cc 108 EXPECT_FALSE(this->table_->IsPrime(-5));
109 EXPECT_FALSE(this->table_->IsPrime(0));
110 EXPECT_FALSE(this->table_->IsPrime(1));
111 EXPECT_FALSE(this->table_->IsPrime(4));
112 EXPECT_FALSE(this->table_->IsPrime(6));
113 EXPECT_FALSE(this->table_->IsPrime(100));
117 EXPECT_TRUE(this->table_->IsPrime(2));
118 EXPECT_TRUE(this->table_->IsPrime(3));
119 EXPECT_TRUE(this->table_->IsPrime(5));
120 EXPECT_TRUE(this->table_->IsPrime(7))
    [all...]
sample5_unittest.cc 117 // Tests IsPrime()
118 TEST_F(IntegerFunctionTest, IsPrime) {
120 EXPECT_TRUE(!IsPrime(-1));
121 EXPECT_TRUE(!IsPrime(-2));
122 EXPECT_TRUE(!IsPrime(INT_MIN));
125 EXPECT_TRUE(!IsPrime(0));
126 EXPECT_TRUE(!IsPrime(1));
127 EXPECT_TRUE(IsPrime(2));
128 EXPECT_TRUE(IsPrime(3));
131 EXPECT_TRUE(!IsPrime(4))
    [all...]
sample7_unittest.cc 82 EXPECT_FALSE(table_->IsPrime(-5));
83 EXPECT_FALSE(table_->IsPrime(0));
84 EXPECT_FALSE(table_->IsPrime(1));
85 EXPECT_FALSE(table_->IsPrime(4));
86 EXPECT_FALSE(table_->IsPrime(6));
87 EXPECT_FALSE(table_->IsPrime(100));
91 EXPECT_TRUE(table_->IsPrime(2));
92 EXPECT_TRUE(table_->IsPrime(3));
93 EXPECT_TRUE(table_->IsPrime(5));
94 EXPECT_TRUE(table_->IsPrime(7))
    [all...]
sample8_unittest.cc 62 virtual bool IsPrime(int n) const {
64 return precalc_impl_->IsPrime(n);
66 return on_the_fly_impl_->IsPrime(n);
122 EXPECT_FALSE(table_->IsPrime(-5));
123 EXPECT_FALSE(table_->IsPrime(0));
124 EXPECT_FALSE(table_->IsPrime(1));
125 EXPECT_FALSE(table_->IsPrime(4));
126 EXPECT_FALSE(table_->IsPrime(6));
127 EXPECT_FALSE(table_->IsPrime(100));
131 EXPECT_TRUE(table_->IsPrime(2))
    [all...]
  /external/protobuf/gtest/samples/
sample1_unittest.cc 116 // Tests IsPrime()
122 EXPECT_FALSE(IsPrime(-1));
123 EXPECT_FALSE(IsPrime(-2));
124 EXPECT_FALSE(IsPrime(INT_MIN));
129 EXPECT_FALSE(IsPrime(0));
130 EXPECT_FALSE(IsPrime(1));
131 EXPECT_TRUE(IsPrime(2));
132 EXPECT_TRUE(IsPrime(3));
137 EXPECT_FALSE(IsPrime(4));
138 EXPECT_TRUE(IsPrime(5))
    [all...]
sample1.h 41 bool IsPrime(int n);
sample6_unittest.cc 108 EXPECT_FALSE(this->table_->IsPrime(-5));
109 EXPECT_FALSE(this->table_->IsPrime(0));
110 EXPECT_FALSE(this->table_->IsPrime(1));
111 EXPECT_FALSE(this->table_->IsPrime(4));
112 EXPECT_FALSE(this->table_->IsPrime(6));
113 EXPECT_FALSE(this->table_->IsPrime(100));
117 EXPECT_TRUE(this->table_->IsPrime(2));
118 EXPECT_TRUE(this->table_->IsPrime(3));
119 EXPECT_TRUE(this->table_->IsPrime(5));
120 EXPECT_TRUE(this->table_->IsPrime(7))
    [all...]
sample5_unittest.cc 117 // Tests IsPrime()
118 TEST_F(IntegerFunctionTest, IsPrime) {
120 EXPECT_TRUE(!IsPrime(-1));
121 EXPECT_TRUE(!IsPrime(-2));
122 EXPECT_TRUE(!IsPrime(INT_MIN));
125 EXPECT_TRUE(!IsPrime(0));
126 EXPECT_TRUE(!IsPrime(1));
127 EXPECT_TRUE(IsPrime(2));
128 EXPECT_TRUE(IsPrime(3));
131 EXPECT_TRUE(!IsPrime(4))
    [all...]
sample7_unittest.cc 84 EXPECT_FALSE(table_->IsPrime(-5));
85 EXPECT_FALSE(table_->IsPrime(0));
86 EXPECT_FALSE(table_->IsPrime(1));
87 EXPECT_FALSE(table_->IsPrime(4));
88 EXPECT_FALSE(table_->IsPrime(6));
89 EXPECT_FALSE(table_->IsPrime(100));
93 EXPECT_TRUE(table_->IsPrime(2));
94 EXPECT_TRUE(table_->IsPrime(3));
95 EXPECT_TRUE(table_->IsPrime(5));
96 EXPECT_TRUE(table_->IsPrime(7))
    [all...]
sample8_unittest.cc 62 virtual bool IsPrime(int n) const {
64 return precalc_impl_->IsPrime(n);
66 return on_the_fly_impl_->IsPrime(n);
122 EXPECT_FALSE(table_->IsPrime(-5));
123 EXPECT_FALSE(table_->IsPrime(0));
124 EXPECT_FALSE(table_->IsPrime(1));
125 EXPECT_FALSE(table_->IsPrime(4));
126 EXPECT_FALSE(table_->IsPrime(6));
127 EXPECT_FALSE(table_->IsPrime(100));
131 EXPECT_TRUE(table_->IsPrime(2))
    [all...]

Completed in 216 milliseconds

1 2