diff options
Diffstat (limited to 'ext/wasm/SQLTester/SQLTester.run.mjs')
-rw-r--r-- | ext/wasm/SQLTester/SQLTester.run.mjs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wasm/SQLTester/SQLTester.run.mjs b/ext/wasm/SQLTester/SQLTester.run.mjs index bba1437e5..bf20c2cee 100644 --- a/ext/wasm/SQLTester/SQLTester.run.mjs +++ b/ext/wasm/SQLTester/SQLTester.run.mjs @@ -9,7 +9,8 @@ ** May you share freely, never taking more than you give. ** ************************************************************************* -** This file contains a test application for SQLTester.js. +** This file contains a test application for SQLTester.mjs. It loads +** test scripts and runs them through the SQLTester class. */ import {default as ns} from './SQLTester.mjs'; import {default as allTests} from './test-list.mjs'; @@ -33,7 +34,7 @@ const affirm = function(expr, msg){ } } -let ts = new ns.TestScript('/foo.test',` +let ts = new ns.TestScript('SQLTester-sanity-check.test',` /* ** This is a comment. There are many like it but this one is mine. ** @@ -93,6 +94,7 @@ SELECT json_array(1,2,3) select 1 as 'a', 2 as 'b'; --result 1 2 --close +--testcase the-end --print Until next time `); @@ -112,8 +114,6 @@ const runTests = function(){ ts.run(sqt); affirm( 'zilch' === sqt.nullValue() ); sqt.addTestScript(ts); - }else if(0){ - sqt.addTestScript(ts); }else{ for(const t of allTests){ sqt.addTestScript( new ns.TestScript(t) ); |