Skip to content

Commit

Permalink
wip: more debug information for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Sep 16, 2023
1 parent c986bf6 commit a5f553b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/r-bridge/retriever.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ export async function getStoredTokenMap(shell: RShell): Promise<TokenMap> {
*/
export async function retrieveNumberOfRTokensOfLastParse(shell: RShell): Promise<number> {
const result = await shell.sendCommandWithOutput(`cat(nrow(getParseData(flowr_parsed)),${ts2r(shell.options.eol)})`)
guard(result.length === 1, 'expected exactly one line to obtain the number of R tokens')
guard(result.length === 1, () => `expected exactly one line to obtain the number of R tokens, but got: ${JSON.stringify(result)}`)
return Number(result[0])
}

0 comments on commit a5f553b

Please sign in to comment.