| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "src/factory.h" | |
| 6 #include "src/handles-inl.h" | |
| 7 #include "test/unittests/test-utils.h" | |
| 8 | |
| 9 namespace v8 { | |
| 10 namespace internal { | |
| 11 | |
| 12 typedef TestWithIsolate FactoryTest; | |
| 13 | |
| 14 | |
| 15 TEST_F(FactoryTest, NewNumberWithMinusZero) { | |
| 16 Handle<Object> minus_zero_value = factory()->minus_zero_value(); | |
| 17 EXPECT_TRUE(minus_zero_value.is_identical_to(factory()->NewNumber(-0.0))); | |
| 18 } | |
| 19 | |
| 20 } // namespace internal | |
| 21 } // namespace v8 | |
| OLD | NEW |