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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java

Issue 8276014: Update assert to follow the spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java (revision 409)
+++ compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java (working copy)
@@ -546,12 +546,6 @@
public void testAssert() {
analyze("assert(true);");
analyze("assert(false);");
- analyze("assert(true, 'message');");
- analyze("assert(false, 'message');");
- analyzeFail("assert('message', false);",
- DartCompilerErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
- analyzeFail("assert('message', true);",
- DartCompilerErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
analyzeFail("assert('message');",
DartCompilerErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
analyze("assert(null);");

Powered by Google App Engine
This is Rietveld 408576698