Skip to content

Commit

Permalink
temporarily change a test to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist authored Jun 18, 2024
1 parent 5168228 commit 070a9ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nimib/blocks.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ func nbNormalize*(text: string): string =
# note that: '\c' == '\r' and '\l' == '\n'

template newNbBlock*(cmd: string, readCode: static[bool], nbDoc, nbBlock, body, blockImpl: untyped) =
stdout.write "[nimib] ", nbDoc.blocks.len, " ", cmd, ": "
# stdout.write "[nimib] ", nbDoc.blocks.len, " ", cmd, ": "
nbBlock = NbBlock(command: cmd, context: newContext(searchDirs = @[], partials = nbDoc.partials))
when readCode:
nbBlock.code = nbNormalize:
when defined(nimibCodeFromAst):
toStr(body)
else:
getCodeAsInSource(nbDoc.source, cmd, body)
echo peekFirstLineOf(nbBlock.code)
# echo peekFirstLineOf(nbBlock.code)
blockImpl
if len(nbBlock.output) > 0: echo " -> ", peekFirstLineOf(nbBlock.output)
# if len(nbBlock.output) > 0: echo " -> ", peekFirstLineOf(nbBlock.output)
nbBlock.context["code"] = nbBlock.code
nbBlock.context["output"] = nbBlock.output.dup(removeSuffix)
nbDoc.blocks.add nbBlock
Expand Down

0 comments on commit 070a9ac

Please sign in to comment.