Advertisement
Shinmera

cl-mongo quick-test

Jul 5th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.52 KB | None | 0 0
  1. CL-MONGO-TEST> (quick-test :collection "units")
  2. ---- starting test of package : { test counting documents } ---------------
  3. testing counting : client count : 43 -- server count 43.0d0
  4. ---- finished test of package { test counting documents } sucessfully ------
  5. ---- starting test of package : { finding documents by field } ---------------
  6. findOne is default : 1
  7. limit == 0 returns all 43 : 43
  8. ---- finished test of package { finding documents by field } sucessfully ------
  9. ---- starting test of package : { deleting documents } ---------------
  10. ---- finished test of package { deleting documents } sucessfully ------
  11. ---- starting test of package : { finding documents } ---------------
  12. ---- finished test of package { finding documents } sucessfully ------
  13. ---- starting test of package : { finding documents with a selector } ---------------
  14. elems with key k : (56.0d0 57.0d0 58.0d0 59.0d0 60.0d0 61.0d0 62.0d0
  15. 63.0d0 64.0d0 65.0d0 66.0d0 67.0d0 68.0d0 69.0d0
  16. 70.0d0 71.0d0 72.0d0 73.0d0 74.0d0 75.0d0 76.0d0
  17. 77.0d0 78.0d0 79.0d0 80.0d0 81.0d0 82.0d0 83.0d0
  18. 84.0d0 85.0d0 86.0d0 87.0d0 88.0d0 89.0d0 90.0d0
  19. 91.0d0 92.0d0 93.0d0 94.0d0 95.0d0 96.0d0 97.0d0
  20. 98.0d0)
  21. elems with key l : (-9.0d0 -8.0d0 -7.0d0 -6.0d0 -5.0d0 -4.0d0 -3.0d0
  22. -2.0d0 -1.0d0 0.0d0 1.0d0 2.0d0 3.0d0 4.0d0 5.0d0
  23. 6.0d0 7.0d0 8.0d0 9.0d0 10.0d0 11.0d0 12.0d0 13.0d0
  24. 14.0d0 15.0d0 16.0d0 17.0d0 18.0d0 19.0d0 20.0d0
  25. 21.0d0 22.0d0 23.0d0 24.0d0 25.0d0 26.0d0 27.0d0
  26. 28.0d0 29.0d0 30.0d0 31.0d0 32.0d0 33.0d0)
  27. elems with key 'index-this' (s/b none) : (NIL NIL NIL NIL NIL NIL NIL NIL
  28. NIL NIL NIL NIL NIL NIL NIL NIL
  29. NIL NIL NIL NIL NIL NIL NIL NIL
  30. NIL NIL NIL NIL NIL NIL NIL NIL
  31. NIL NIL NIL NIL NIL NIL NIL NIL
  32. NIL NIL NIL)
  33. elems with key k (s/b none !) : (NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL
  34. NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL
  35. NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL
  36. NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL
  37. NIL NIL NIL)
  38. elems with key l (s/b none !) : (NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL
  39. NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL
  40. NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL
  41. NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL
  42. NIL NIL NIL)
  43. elems with key index-this : (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
  44. 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
  45. 33 34 35 36 37 38 39 40 41 42)
  46. ---- finished test of package { finding documents with a selector } sucessfully ------
  47. ---- starting test of package : { sorting documents by field } ---------------
  48.  
  49. ------------------------------------------------------------
  50. sorting test : printing out server side sorted arrays; no test yet ..
  51. elem : (56.0d0 57.0d0 58.0d0 59.0d0 60.0d0 61.0d0 62.0d0 63.0d0 64.0d0
  52. 65.0d0 66.0d0 67.0d0 68.0d0 69.0d0 70.0d0 71.0d0 72.0d0 73.0d0
  53. 74.0d0 75.0d0 76.0d0 77.0d0 78.0d0 79.0d0 80.0d0 81.0d0 82.0d0
  54. 83.0d0 84.0d0 85.0d0 86.0d0 87.0d0 88.0d0 89.0d0 90.0d0 91.0d0
  55. 92.0d0 93.0d0 94.0d0 95.0d0 96.0d0 97.0d0 98.0d0)
  56. elem : (98.0d0 97.0d0 96.0d0 95.0d0 94.0d0 93.0d0 92.0d0 91.0d0 90.0d0
  57. 89.0d0 88.0d0 87.0d0 86.0d0 85.0d0 84.0d0 83.0d0 82.0d0 81.0d0
  58. 80.0d0 79.0d0 78.0d0 77.0d0 76.0d0 75.0d0 74.0d0 73.0d0 72.0d0
  59. 71.0d0 70.0d0 69.0d0 68.0d0 67.0d0 66.0d0 65.0d0 64.0d0 63.0d0
  60. 62.0d0 61.0d0 60.0d0 59.0d0 58.0d0 57.0d0 56.0d0)
  61.  
  62. ------------------------------------------------------------
  63. ---- finished test of package { sorting documents by field } sucessfully ------
  64. ---- starting test of package : { matching document elements by field } ---------------
  65. test test of element match a >= 10 ; b < 30 failed with error The value
  66. NIL
  67. is not of type
  68. REAL.
  69. ---- finished test of package { matching document elements by field } sucessfully ------
  70. ---- starting test of package : { advanced query regression elements } ---------------
  71. ---- finished test of package { advanced query regression elements } sucessfully ------
  72. ---- starting test of package : { advanced query regression elements; part 2 } ---------------
  73. ---- finished test of package { advanced query regression elements; part 2 } sucessfully ------
  74. ---- starting test of package : { test update modifiers } ---------------
  75. ---- finished test of package { test update modifiers } sucessfully ------
  76. ---- starting test of package : { test java script (local and remote) } ---------------
  77.  
  78. "nIndexesWas" -> 1.0d0
  79. "msg" -> non-_id indexes dropped for collection
  80. "ok" -> 1.0d0
  81. ---- finished test of package { test java script (local and remote) } sucessfully ------
  82. ---- starting test of package : { test map-reduce) } ---------------
  83. ---- finished test of package { test map-reduce) } sucessfully ------
  84. ---- starting test of package : { test indexing } ---------------
  85.  
  86. "nIndexesWas" -> 1.0d0
  87. "msg" -> non-_id indexes dropped for collection
  88. "ok" -> 1.0d0
  89. [{name : _id_} {v : 1} {key : } {ns : test.foo} ]
  90. [{name : _id_} {v : 1} {key : } {ns : test.iter} ]
  91. [{name : _id_} {v : 1} {key : } {ns : test.a} ]
  92. [{name : _id_} {v : 1} {key : } {ns : test.updatetest} ]
  93. [{name : _id_} {v : 1} {key : } {ns : test.units} ]
  94. [{name : _id_} {v : 1} {key : } {ns : test.system.js} ]
  95. [{name : index_this2_1} {v : 1} {key : (index_this2 : 1.0d0) } {ns : test.units} ]
  96. [{name : _id_} {v : 1} {key : } {ns : test.foo} ]
  97. [{name : _id_} {v : 1} {key : } {ns : test.iter} ]
  98. [{name : _id_} {v : 1} {key : } {ns : test.a} ]
  99. [{name : _id_} {v : 1} {key : } {ns : test.updatetest} ]
  100. [{name : _id_} {v : 1} {key : } {ns : test.units} ]
  101. [{name : _id_} {v : 1} {key : } {ns : test.system.js} ]
  102. [{name : index_this2_1} {v : 1} {key : (index_this2 : 1.0d0) } {ns : test.units} ]
  103. [{name : index_this2_-1} {v : 1} {key : (index_this2 : -1.0d0) } {unique : T} {ns : test.units} {dropDups : T} ]
  104.  
  105. "nIndexesWas" -> 3.0d0
  106. "msg" -> non-_id indexes dropped for collection
  107. "ok" -> 1.0d0
  108. ---- finished test of package { test indexing } sucessfully ------
  109. ---- starting test of package : { test serialization; inspect visually } ---------------
  110.  
  111. {
  112. "_id" -> objectid(DC C01C1CA104E26AAAED32F)
  113. "date-time" -> CL-MONGO::BSON-TIME Mon Apr 5 2010 16:34:12 (GMT-5)
  114. "string" -> hello world generated by test-document
  115. "number89" -> 89
  116. "numberbig" -> 89988787777887
  117. "float 89.67" -> 89.66999816894531d0
  118. "list-1" -> [ 1, 2, 3, 4,]
  119. "list-2" -> [ 1,[ inside, 3, 4, list,], the end,]
  120. "doc2" ->
  121. {
  122. "_id" -> objectid(9AC058892C984D988966548B)
  123. "key-1" -> doc in doc !!
  124. "key-2" -> 56.88999938964844d0
  125. "doc3" ->
  126. {
  127. "_id" -> objectid(8F2AF697298F4B369E61A413)
  128. "array" -> [[[ inside a nest!!,],],]
  129. "key56" -> 56
  130. }
  131.  
  132. }
  133.  
  134. }
  135.  
  136. ---- finished test of package { test serialization; inspect visually } sucessfully ------
  137. NIL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement