aboutsummaryrefslogtreecommitdiff
path: root/tests/expand/README.md
blob: 1f7dcfbb2e3f2b518aa04061f49f633a35ddc585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Expansion tests

Similar to ui tests, but instead of checking the compiler output, this checks
the code generated by macros.

See [examples](https://github.com/taiki-e/pin-project/tree/HEAD/examples) for
descriptions of what the generated code does, and why it needs to be generated.

To run this test, run the following command:

```sh
cargo +nightly test --test expandtest
```

Locally, this test updates the files in the `expand` directory if there are
changes to the generated code. If there are any changes to the files in the
`expand` directory after running the test, please commit them.