add: assert(res2[0].cn == "x9"); 
context: function setup_modules(ldb){	ok = ldb.add("dn: @MODULES@LIST: timestamps,objectguid,rdn_name");}/* Test the basic operation of the timestamps,objectguid and name_rdn   modules */function modules_test(ldb) {        println("Running modules tests");	ok = ldb.add("dn: cn=x8,cn=testobjectClass: foox: 8");	assert(ok);	ok = ldb.add("dn: cn=x9,cn=testobjectClass: foox: 9");	assert(ok);	var res = ldb.search("x=8", NULL, ldb.SCOPE_DEFAULT);	assert(res[0].objectGUID != undefined);	assert(res[0].createTimestamp != undefined);	assert(res[0].whenCreated != undefined);	assert(res[0].name == "x8");	var res2 = ldb.search("x=9", NULL, ldb.SCOPE_DEFAULT);	assert(res2[0].objectGUID != undefined);	assert(res2[0].createTimestamp != undefined);	assert(res2[0].whenCreated != undefined);	assert(res2[0].name == "x9");	assert(res[0].objectGUID != res2[0].objectGUID);}sys = sys_init();var dbfile = "test.ldb";sys.unlink(dbfile);var ok = ldb.connect("tdb://" + dbfile);assert(ok);basic_tests(ldb);setup_modules(ldb);ldb = ldb_init();var ok = ldb.connect("tdb://" + dbfile);assert(ok);modules_test(ldb);sys.unlink(dbfile);return 0;
meta: 1392	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1392/a7f9d9c5b8e77e0530ace68bd2ed4a7c374bf0fa/ldb.js/clean/testprogs/ejs/ldb.js