Permalink
Browse files

minor change to test code

  • Loading branch information...
1 parent f60f25b commit 0c845ef39695b3addcd429e392adc594017ac8a0 Atsushi Takayama committed Jun 13, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/sample.js
View
@@ -5,6 +5,8 @@ var sys = require('sys');
var TC = require('../build/default/tokyocabinet');
var fs = require('fs');
+sys.puts("Tokyo Cabinet version " + TC.VERSION);
+
(function() {
sys.puts("== Sample: HDB ==");
var HDB = TC.HDB;
@@ -33,7 +35,7 @@ var fs = require('fs');
while ((key = hdb.iternext()) !== null) {
value = hdb.get(key);
if (value !== null) {
- sys.puts(value);
+ sys.puts(key + ':' + value);
}
}
@@ -194,6 +196,7 @@ var fs = require('fs');
if (!adb.open('casket.tcb')) {
sys.error("open error");
}
+ sys.puts(adb.misc("ecode"))
if (!adb.put("foo", "hop") ||
!adb.put("bar", "step") ||

0 comments on commit 0c845ef

Please sign in to comment.