MCPcopy
hub / github.com/witheve/Eve / testSingleExpressionByList

Function testSingleExpressionByList

test/shared_functions.ts:216–238  ·  view source on GitHub ↗
(list: valueTest[])

Source from the content-addressed store, hash-verified

214};
215
216export function testSingleExpressionByList(list: valueTest[]){
217 list.forEach((list_item,index) =>{
218 test(`Is ${list_item.expression} returning ${list_item.expectedValue}?`, (assert) => {
219 let expected = {
220 insert: [
221 ["a", "floatTest", list_item.expectedValue],
222 ],
223 remove: [],
224 };
225
226 evaluate(assert, expected, `
227 ~~~
228 search
229 x = ${list_item.expression}
230
231 bind
232 [floatTest: x]
233 ~~~
234 `);
235 assert.end();
236 });
237 });
238}

Callers 1

math.tsFile · 0.90

Calls 2

evaluateFunction · 0.85
testFunction · 0.50

Tested by

no test coverage detected