Skip to content

Update 03-structs.qmd, use assert over expect#208

Open
matt-savvy wants to merge 1 commit intopedropark99:mainfrom
matt-savvy:patch-1
Open

Update 03-structs.qmd, use assert over expect#208
matt-savvy wants to merge 1 commit intopedropark99:mainfrom
matt-savvy:patch-1

Conversation

@matt-savvy
Copy link

According to docs for assert

Inside a test block, it is best to use the std.testing module rather than this function, because this function may not detect a test failure in ReleaseFast and ReleaseSmall mode. Outside of a test block, this assert function is the correct function to use.

According to docs for (assert)[https://ziglang.org/documentation/0.15.2/std/#std.debug.assert]

> Inside a test block, it is best to use the std.testing module rather than this function, because this function may not detect a test failure in ReleaseFast and ReleaseSmall mode. Outside of a test block, this assert function is the correct function to use.
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.

1 participant