File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -365,3 +365,24 @@ add('test_empty_space', function(g)
365
365
]] )
366
366
t .assert_equals (count , 0 )
367
367
end )
368
+
369
+ add (' test_luafun_compatipility' , function (g )
370
+ insert_customers (g ,{
371
+ {
372
+ id = 1 , name = " Elizabeth" , last_name = " Jackson" ,
373
+ age = 12 , city = " New York" ,
374
+ }, {
375
+ id = 2 , name = " Mary" , last_name = " Brown" ,
376
+ age = 46 , city = " Los Angeles" ,
377
+ }, {
378
+ id = 3 , name = " David" , last_name = " Smith" ,
379
+ age = 33 , city = " Los Angeles" ,
380
+ },
381
+ })
382
+ local count = g .cluster .main_server .net_box :eval ([[
383
+ local crud = require('crud')
384
+ local count = crud.pairs('customers'):map(function() return 1 end):sum()
385
+ return count
386
+ ]] )
387
+ t .assert_equals (count , 3 )
388
+ end )
You can’t perform that action at this time.
0 commit comments