From 6894716121427c39d207dae737774ed807a3362c Mon Sep 17 00:00:00 2001 From: "mikhail.naganov@gmail.com" Date: Sun, 24 Jul 2011 17:59:59 +0000 Subject: [PATCH] v8: Move DeleteEmpty test to test-list.cc BUG=None TEST=None Signed-off-by: Thiago Farina git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8728 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-ast.cc | 11 ----------- test/cctest/test-list.cc | 13 ++++++++++++- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/cctest/test-ast.cc b/test/cctest/test-ast.cc index 786a54a..2aa7207 100644 --- a/test/cctest/test-ast.cc +++ b/test/cctest/test-ast.cc @@ -56,14 +56,3 @@ TEST(List) { CHECK_EQ(0, list->length()); delete list; } - - -TEST(DeleteEmpty) { - { - List* list = new List(0); - delete list; - } - { - List list(0); - } -} diff --git a/test/cctest/test-list.cc b/test/cctest/test-list.cc index e20ee8a..7520b05 100644 --- a/test/cctest/test-list.cc +++ b/test/cctest/test-list.cc @@ -1,4 +1,4 @@ -// Copyright 2009 the V8 project authors. All rights reserved. +// Copyright 2011 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: @@ -138,3 +138,14 @@ TEST(Clear) { list.Clear(); CHECK_EQ(0, list.length()); } + + +TEST(DeleteEmpty) { + { + List* list = new List(0); + delete list; + } + { + List list(0); + } +} -- 2.7.4