Snapshots
Since all AST nodes implement the Debug
trait, it is very easy to take snapshots of them.
Therefore, you can use any snapshot testing library such as insta
or expect_test
.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Since all AST nodes implement the Debug
trait, it is very easy to take snapshots of them.
Therefore, you can use any snapshot testing library such as insta
or expect_test
.