-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISS-1 sapiologie/hyperformula placeholder function and test
- Loading branch information
1 parent
f0f9545
commit 43b3afa
Showing
3 changed files
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2024 Handsoncode. All rights reserved. | ||
*/ | ||
|
||
import { ProcedureAst } from '../../parser' | ||
import { InterpreterState } from '../InterpreterState' | ||
import { InterpreterValue } from '../InterpreterValue' | ||
import { FunctionPlugin, FunctionPluginTypecheck } from './FunctionPlugin' | ||
|
||
|
||
export class XlookupPlugin extends FunctionPlugin implements FunctionPluginTypecheck<XlookupPlugin> { | ||
public static implementedFunctions = { | ||
XLOOKUP: { | ||
method: 'xlookup', | ||
parameters: [ | ||
// TODO @selim - add arguments | ||
], | ||
repeatLastArgs: 2, | ||
} | ||
} | ||
|
||
public xlookup(ast: ProcedureAst, state: InterpreterState): InterpreterValue { | ||
// TODO @selim - implement | ||
return 2 | ||
} | ||
} |
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,6 @@ | ||
describe('Function XLOOKUP', () => { | ||
// TODO @selim - implement me | ||
it('wrong number of arguments', () => { | ||
expect(true).toEqual(true) | ||
}) | ||
}) |