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

Side by Side Diff: sdk/lib/_internal/pub/test/sdk_test.dart

Issue 69723004: Get rid of DART_SDK in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
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 file.
4
5 library pub_tests;
6
7 import 'package:unittest/unittest.dart';
8
9 import '../lib/src/sdk.dart' as sdk;
10 import '../lib/src/version.dart';
11
12 main() {
13 group("parseVersion()", () {
14 test("parses a release-style version", () {
15 expect(sdk.parseVersion("0.1.2.0_r17645"),
16 equals(new Version.parse("0.1.2+0.r17645")));
17 });
18
19 test("parses a dev-only style version", () {
20 // The "version" file generated on developer builds is a little funky and
21 // we need to make sure we don't choke on it.
22 expect(sdk.parseVersion("0.1.2.0_r16279_bobross"),
23 equals(new Version.parse("0.1.2+0.r16279.bobross")));
24 });
25 });
26 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/real_version_test.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698