OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:IsPrime
(Results
1 - 25
of
40
) 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
...]
/external/chromium_org/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_FALSE(
IsPrime
(-1));
121
EXPECT_FALSE(
IsPrime
(-2));
122
EXPECT_FALSE(
IsPrime
(INT_MIN));
125
EXPECT_FALSE(
IsPrime
(0));
126
EXPECT_FALSE(
IsPrime
(1));
127
EXPECT_TRUE(
IsPrime
(2));
128
EXPECT_TRUE(
IsPrime
(3));
131
EXPECT_FALSE(
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
...]
/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
...]
/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
...]
/ndk/sources/third_party/googletest/googletest/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_FALSE(
IsPrime
(-1));
121
EXPECT_FALSE(
IsPrime
(-2));
122
EXPECT_FALSE(
IsPrime
(INT_MIN));
125
EXPECT_FALSE(
IsPrime
(0));
126
EXPECT_FALSE(
IsPrime
(1));
127
EXPECT_TRUE(
IsPrime
(2));
128
EXPECT_TRUE(
IsPrime
(3));
131
EXPECT_FALSE(
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
...]
Completed in 212 milliseconds
1
2