Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test a little more

  • Loading branch information...
commit 0b8aece4a055c5498b1096ecd29184d0f3164a77 1 parent 635242d
Eric Fredricksen authored Eric Fredricksen committed
Showing with 8 additions and 5 deletions.
  1. +8 −5 test.js
13 test.js
View
@@ -25,13 +25,16 @@ db.query("SELECT * FROM egg", function (rows) {
});
db.query("SELECT a FROM egg; SELECT y FROM egg", function (as, ys) {
- sys.puts("As " + JSON.stringify(as));
- sys.puts("Ys " + JSON.stringify(ys));
- });
+ sys.puts("As " + JSON.stringify(as));
+ sys.puts("Ys " + JSON.stringify(ys));
+ process.assert(as.length == 4);
+ process.assert(ys.length == 4);
+});
db.query("SELECT e FROM egg WHERE a = ?", [5], function (rows) {
- process.assert(rows[0].e == "E");
- });
+ process.assert(rows.length == 1);
+ process.assert(rows[0].e == "E");
+});
db.transaction(function(tx) {
Please sign in to comment.
Something went wrong with that request. Please try again.