-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtest-debug.js
More file actions
25 lines (21 loc) · 780 Bytes
/
test-debug.js
File metadata and controls
25 lines (21 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env node
// Debug test for quickValidateSeriesTypeWhereSimpleExpected
async function testFunction() {
try {
const { quickValidateSeriesTypeWhereSimpleExpected } = await import('./src/parser/index.js');
const testCode = `
//@version=6
type MyUDT
float adaptiveSlowLength
var myUdt = MyUDT.new(14.0)
ta.ema(close, myUdt.adaptiveSlowLength)
`;
console.log('All exports:');
const allExports = await import('./dist/src/parser/index.js');
console.log('Exported keys:', Object.keys(allExports));
console.log('quickValidateSeriesTypeWhereSimpleExpected type:', typeof allExports.quickValidateSeriesTypeWhereSimpleExpected);
} catch (error) {
console.error('Error:', error);
}
}
testFunction();