@@ -12,11 +12,6 @@ describe('Test 167B - SEARCH DISTINCT and SELECT DISTINCT functions', function (
1212 var res3 = alasql ( 'SELECT COLUMN DISTINCT _ FROM ?' , [ data ] ) ;
1313 var res4 = alasql ( 'SEARCH DISTINCT(/) FROM ?' , [ data ] ) ;
1414
15- console . log ( 'res1 (SELECT *):' , JSON . stringify ( res1 ) ) ;
16- console . log ( 'res2 (SELECT DISTINCT *):' , JSON . stringify ( res2 ) ) ;
17- console . log ( 'res3 (SELECT COLUMN DISTINCT _):' , JSON . stringify ( res3 ) ) ;
18- console . log ( 'res4 (SEARCH DISTINCT(/)):' , JSON . stringify ( res4 ) ) ;
19-
2015 // res1 should have all 3 items
2116 assert . equal ( res1 . length , 3 ) ;
2217
@@ -32,9 +27,6 @@ describe('Test 167B - SEARCH DISTINCT and SELECT DISTINCT functions', function (
3227 var res3 = alasql ( 'SELECT COLUMN DISTINCT _ FROM ?' , [ data ] ) ;
3328 var res4 = alasql ( 'SEARCH DISTINCT(/) FROM ?' , [ data ] ) ;
3429
35- console . log ( 'res3 (SELECT COLUMN DISTINCT _) with mixed data:' , JSON . stringify ( res3 ) ) ;
36- console . log ( 'res4 (SEARCH DISTINCT(/)) with mixed data:' , JSON . stringify ( res4 ) ) ;
37-
3830 // Should return 2 distinct objects: {a:1} and {b:2}
3931 assert . equal ( res3 . length , 2 , 'SELECT COLUMN DISTINCT _ should return 2 items' ) ;
4032 assert . equal ( res4 . length , 2 , 'SEARCH DISTINCT(/) should return 2 items' ) ;
@@ -57,9 +49,6 @@ describe('Test 167B - SEARCH DISTINCT and SELECT DISTINCT functions', function (
5749 var res2 = alasql ( 'SELECT DISTINCT * FROM ?' , [ data ] ) ;
5850 var res4 = alasql ( 'SEARCH DISTINCT(/) FROM ?' , [ data ] ) ;
5951
60- console . log ( 'res2 (SELECT DISTINCT *):' , JSON . stringify ( res2 ) ) ;
61- console . log ( 'res4 (SEARCH DISTINCT(/)):' , JSON . stringify ( res4 ) ) ;
62-
6352 // Results should be the same
6453 assert . deepEqual (
6554 res2 ,
@@ -72,7 +61,6 @@ describe('Test 167B - SEARCH DISTINCT and SELECT DISTINCT functions', function (
7261 var data = [ 1 , 2 , 1 , 3 , 2 ] ;
7362
7463 var res = alasql ( 'SELECT COLUMN DISTINCT _ FROM ?' , [ data ] ) ;
75- console . log ( 'SELECT COLUMN DISTINCT _ from array:' , JSON . stringify ( res ) ) ;
7664
7765 // Should return distinct values: [1, 2, 3]
7866 assert . equal ( res . length , 3 , 'Should return 3 distinct values' ) ;
0 commit comments