Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimental/diff: move isMainModule block to tests/stdlib/tdiff.nim #16172

Merged

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Nov 28, 2020

view diff with: git show --color-moved --color-moved-ws=ignore-all-space HEAD

CI failure unrelated: #16169

@ringabout
Copy link
Member

Yeah, I will clean assert => doAssert soon.

tests/stdlib/tdiff.nim Outdated Show resolved Hide resolved
@ringabout
Copy link
Member

The rest looks good to me.
image
https://www.diffchecker.com/pfhO4juY

@juancarlospaco
Copy link
Collaborator

This module should be moved out of that experimental folder that only exists for it,
is not too unstable and code looks good enough.

@timotheecour timotheecour merged commit d29eddf into nim-lang:devel Nov 28, 2020
@timotheecour timotheecour deleted the pr_isMainModule_migrate_diff branch November 28, 2020 19:59
@timotheecour
Copy link
Member Author

timotheecour commented Nov 28, 2020

This module should be moved out of that experimental folder that only exists for it,
is not too unstable and code looks good enough.

that would require improving API first eg

newDiffData => initDiffData
sms => shortestMiddleSnake

# and code cleanups eg:

# Debug.Write(0, "sms", "extend reverse path " + k.ToString())
=>
when defined(nimDiffDebug): ...
  • allowing a generic API

  • using runnableExamples

  • and many other things

it's doable after that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants