Skip to content

Commit

Permalink
Add test for #1983 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasrw committed Dec 29, 2024
1 parent 7d8d8bb commit 7e9a55f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/test1983.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
if (typeof exports === 'object') {
var assert = require('assert');
var alasql = require('..');
}

const test = '1983'; // insert test file number

describe('Test 1983 - multiple statements', function () {

before(function () {
alasql('create database test' + test);
alasql('use test' + test);
alasql('CREATE TABLE a (anything string);')
});

after(function () {
alasql('drop database test' + test);
});

it('USING followed by name', function () {
assert.doesNotThrow(() => alasql('SELECT * FROM a a1 JOIN a a2 USING c;'));
});

it('USING followed by name in parathesis', function () {
assert.doesNotThrow(() => alasql('SELECT * FROM a a1 JOIN a a2 USING (c);'));
});
});

0 comments on commit 7e9a55f

Please sign in to comment.