浏览代码

[neko] Add test for #3691

Cauê Waneck 10 年之前
父节点
当前提交
280a7be2b4
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tests/unit/src/unit/TestSpod.hx

+ 5 - 0
tests/unit/src/unit/TestSpod.hx

@@ -158,6 +158,11 @@ class TestSpod extends Test
 		eq(r2s.length,1);
 		eq(r2s.length,1);
 		eq(r2s.first().theId,id3);
 		eq(r2s.first().theId,id3);
 
 
+		var ids = [id1,id2,id3];
+		var s = [ for (c in MySpodClass.manager.search( $anEnum == SecondValue || $theId in ids )) c.theId ];
+		s.sort(Reflect.compare);
+		eq([id1,id2,id3].join(','),s.join(','));
+
 		r2s.first().delete();
 		r2s.first().delete();
 		for (v in MySpodClass.manager.search($anEnum == fv)) v.delete();
 		for (v in MySpodClass.manager.search($anEnum == fv)) v.delete();
 	}
 	}