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

Side by Side Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/file/StringCodecTest.java

Issue 587743002: Version 1.7.0-dev.3.2 . (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014, the Dart project authors. 2 * Copyright (c) 2014, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
11 * or implied. See the License for the specific language governing permissions a nd limitations under 11 * or implied. See the License for the specific language governing permissions a nd limitations under
12 * the License. 12 * the License.
13 */ 13 */
14 package com.google.dart.engine.internal.index.file; 14 package com.google.dart.engine.internal.index.file;
15 15
16 import junit.framework.TestCase; 16 import junit.framework.TestCase;
17 17
18 public class StringCodecTest extends TestCase { 18 public class StringCodecTest extends TestCase {
19 private StringCodec codec = new StringCodec(); 19 private StringCodec codec = new StringCodec();
20 20
21 public void test_all() throws Exception { 21 public void test_all() throws Exception {
22 int idA = codec.encode("aaa"); 22 int idA = codec.encode("aaa");
23 int idB = codec.encode("bbb"); 23 int idB = codec.encode("bbb");
24 assertEquals("aaa", codec.decode(idA)); 24 assertEquals("aaa", codec.decode(idA));
25 assertEquals("bbb", codec.decode(idB)); 25 assertEquals("bbb", codec.decode(idB));
26 } 26 }
27
28 @Override
29 protected void tearDown() throws Exception {
30 codec = null;
31 super.tearDown();
32 }
27 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698