Browse files

add another reg test so i don't break equalities again.

  • Loading branch information...
1 parent 2d1f17f commit c6d34581732a269bdfa3a2c0ecf1a22fbceaf1e1 @maxtaco committed Dec 3, 2011
Showing with 27 additions and 0 deletions.
  1. +27 −0 test/cases/38.tjs
View
27 test/cases/38.tjs
@@ -0,0 +1,27 @@
+// -*- mode: javascript; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
+
+"use strict";
+
+var assert = require ("assert");
+
+var sum = 0;
+var i = 0;
+
+exports["parsing and lexing of equalities"] = {
+
+ run : function (cb) {
+ if (1 === 1) { i++; }
+ if (1 == 1) { i++; }
+ if (1 != 2) { i++; }
+ if (1 !== 2) { i++; }
+ if (3 <= 4) { i++; }
+ if (!!30) { i++; }
+ if (5 >= 1) { i++; }
+ cb();
+ },
+
+ check : function () {
+ assert.equal (i, 7, "all 7 worked");
+ }
+
+};

0 comments on commit c6d3458

Please sign in to comment.