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

add testutils.assertAll; privateAccess now works with ref | ptr #17760

Merged
merged 1 commit into from
Apr 18, 2021

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Apr 17, 2021

add testutils.assertAll

for now it's in a private test only module (stdtest/testutils)

compared to unittest.check:

  • it is usable at CT
  • can be used with statements, which reduces boilerplace and increases readability:
doAssert 1+1 == 2
var a = 3
doAssert a == 4

=>

assertAll:
  1+1 == 2
  var a = 3
  a == 4

see tests

privateAccess now works with ref | ptr

see tests

future work

@timotheecour timotheecour marked this pull request as ready for review April 18, 2021 00:43
@Araq Araq merged commit 0a10af5 into nim-lang:devel Apr 18, 2021
@timotheecour timotheecour deleted the pr_privateAccess_improve branch April 19, 2021 02:30
PMunch pushed a commit to PMunch/Nim that referenced this pull request Mar 28, 2022
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.

2 participants