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

chore(examples): Use uassert/urequire instead of testing in some demo packages #2491

Merged
merged 38 commits into from
Jul 14, 2024

Conversation

linhpn99
Copy link
Contributor

@linhpn99 linhpn99 commented Jul 3, 2024

Related with #2481

This PR handles the following tasks:

  1. Adds NotEqual() and NotEmpty() functions to the p/demo/uassert and p/demo/ urequire packages (including unit tests)
  2. Uses p/demo/uassert and p/demo/urequire packages for writing unit tests for some demo packages at examples/p/demo
  3. Todo : Do the same things with examples/r/demo (done)
Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@linhpn99 linhpn99 requested review from a team as code owners July 3, 2024 10:21
@linhpn99 linhpn99 requested review from mvertes and ltzmaxwell and removed request for a team July 3, 2024 10:21
@github-actions github-actions bot added the 🧾 package/realm Tag used for new Realms or Packages. label Jul 3, 2024
@moul moul merged commit 36cf380 into gnolang:master Jul 14, 2024
9 checks passed
gfanton pushed a commit to gfanton/gno that referenced this pull request Jul 23, 2024
… packages (gnolang#2491)

Related with gnolang#2481

This PR handles the following tasks:

1. Adds `NotEqual()` and `NotEmpty()` functions to the `p/demo/uassert`
and `p/demo/ urequire` packages (including unit tests)
2. Uses `p/demo/uassert` and `p/demo/urequire` packages for writing unit
tests for some demo packages at `examples/p/demo`
3. Todo : Do the same things with `examples/r/demo` (done)

<!-- please provide a detailed description of the changes made in this
pull request. -->

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧾 package/realm Tag used for new Realms or Packages.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants