Index: test/unittests/compiler/simplified-operator-reducer-unittest.cc |
diff --git a/test/unittests/compiler/simplified-operator-reducer-unittest.cc b/test/unittests/compiler/simplified-operator-reducer-unittest.cc |
index 38924123df5aaab6639fe3c805d68687320cdb5a..f8f9561af8c094d15a9d276e6ca8ae97a81eeed2 100644 |
--- a/test/unittests/compiler/simplified-operator-reducer-unittest.cc |
+++ b/test/unittests/compiler/simplified-operator-reducer-unittest.cc |
@@ -119,39 +119,6 @@ const double kNaNs[] = {-std::numeric_limits<double>::quiet_NaN(), |
// ----------------------------------------------------------------------------- |
-// AnyToBoolean |
- |
- |
-TEST_F(SimplifiedOperatorReducerTest, AnyToBooleanWithBoolean) { |
- Node* p = Parameter(Type::Boolean()); |
- Reduction r = Reduce(graph()->NewNode(simplified()->AnyToBoolean(), p)); |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_EQ(p, r.replacement()); |
-} |
- |
- |
-TEST_F(SimplifiedOperatorReducerTest, AnyToBooleanWithOrderedNumber) { |
- Node* p = Parameter(Type::OrderedNumber()); |
- Reduction r = Reduce(graph()->NewNode(simplified()->AnyToBoolean(), p)); |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), |
- IsBooleanNot(IsNumberEqual(p, IsNumberConstant(0)))); |
-} |
- |
- |
-TEST_F(SimplifiedOperatorReducerTest, AnyToBooleanWithString) { |
- Node* p = Parameter(Type::String()); |
- Reduction r = Reduce(graph()->NewNode(simplified()->AnyToBoolean(), p)); |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), |
- IsBooleanNot( |
- IsNumberEqual(IsLoadField(AccessBuilder::ForStringLength(), p, |
- graph()->start(), graph()->start()), |
- IsNumberConstant(0)))); |
-} |
- |
- |
-// ----------------------------------------------------------------------------- |
// BooleanNot |