Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: src/vm/vector_test.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/vm/vector.cc ('k') | src/vm/vm.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
2 // for details. all rights reserved. use of this source code is governed by a 2 // for details. all rights reserved. use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #include <string.h> 5 #include <string.h>
6 6
7 #include "src/shared/assert.h" 7 #include "src/shared/assert.h"
8 #include "src/shared/flags.h" 8 #include "src/shared/flags.h"
9 #include "src/shared/test_case.h" 9 #include "src/shared/test_case.h"
10 10
11 #include "src/vm/vector.h" 11 #include "src/vm/vector.h"
12 12
13 namespace fletch { 13 namespace dartino {
14 14
15 // Some examples with and without a typedef. It's a lot easier to understand 15 // Some examples with and without a typedef. It's a lot easier to understand
16 // with the typedef than without! 16 // with the typedef than without!
17 typedef const char* ConstString; 17 typedef const char* ConstString;
18 18
19 bool StringCompare(const char* const* a, const char* const* b) { 19 bool StringCompare(const char* const* a, const char* const* b) {
20 return strcmp(*a, *b) < 0; 20 return strcmp(*a, *b) < 0;
21 } 21 }
22 22
23 bool StringReverseCompare(const ConstString* a, const ConstString* b) { 23 bool StringReverseCompare(const ConstString* a, const ConstString* b) {
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 vector.Sort(IntCompare); 277 vector.Sort(IntCompare);
278 vector.Sort(IntReverseCompare); 278 vector.Sort(IntReverseCompare);
279 for (unsigned i = 1; i < vector.size(); i++) { 279 for (unsigned i = 1; i < vector.size(); i++) {
280 EXPECT_GE(vector[i - 1], vector[i]); 280 EXPECT_GE(vector[i - 1], vector[i]);
281 } 281 }
282 vector.Sort(FalseCompare); 282 vector.Sort(FalseCompare);
283 } 283 }
284 } 284 }
285 285
286 } // namespace fletch. 286 } // namespace dartino.
OLDNEW
« no previous file with comments | « src/vm/vector.cc ('k') | src/vm/vm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698