mondo: rational number test

This commit is contained in:
Felix Roos 2025-04-04 10:04:22 +02:00
parent d5ef686fe0
commit 7fc21d55d7
No known key found for this signature in database
2 changed files with 111 additions and 3 deletions

View file

@ -437,6 +437,7 @@ export class MondoRunner {
ast.value = Number(ast.value);
} else if (['quotes_double', 'quotes_single'].includes(ast.type)) {
ast.value = ast.value.slice(1, -1);
ast.type = 'plain'; // is this problematic?
}
return this.evaluator(ast, scope);
}