-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "alasql", | ||
"description": "Versatile SQL database for browser or node. Handles both your (traditional) relational tables and nested JSON data (noSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"author": "Andrey Gershun <[email protected]>", | ||
"directories": { | ||
"test": "test" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This is a list of keywords to be removed: | ||
|
||
VALUE | ||
MATRIX | ||
RECORDSET | ||
TEXTSTRING | ||
ROW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
if(typeof exports === 'object') { | ||
var assert = require("assert"); | ||
var alasql = require('..'); | ||
} else { | ||
__dirname = '.'; | ||
}; | ||
|
||
|
||
describe('Test 352 TEST EQUALITY', function() { | ||
it('1. CREATE DATABASE',function(done){ | ||
alasql('CREATE DATABASE test352;USE test352'); | ||
done(); | ||
}); | ||
|
||
it('2. TEST =',function(done){ | ||
var res = alasql('= 1=1'); | ||
assert.deepEqual(res,true); | ||
var res = alasql('= 1=NULL'); | ||
assert.deepEqual(res,false); | ||
var res = alasql('= 0=NULL'); | ||
assert.deepEqual(res,false); | ||
done(); | ||
}); | ||
|
||
it('3. TEST ==',function(done){ | ||
var res = alasql('= 1==1'); | ||
assert.deepEqual(res,true); | ||
var res = alasql('= 1==NULL'); | ||
assert.deepEqual(res,false); | ||
var res = alasql('= 0==NULL'); | ||
assert.deepEqual(res,false); | ||
done(); | ||
}); | ||
|
||
it('4. TEST == deepEqual',function(done){ | ||
var res = alasql('= {a:1}=={a:1}'); | ||
assert.deepEqual(res,true); | ||
var res = alasql('= {a:1}=={a:2}'); | ||
assert.deepEqual(res,false); | ||
done(); | ||
}); | ||
|
||
it('99. DROP DATABASE',function(done){ | ||
alasql.options.modifier = undefined; | ||
alasql('DROP DATABASE test352'); | ||
done(); | ||
}); | ||
|
||
}); |