File tree Expand file tree Collapse file tree 2 files changed +47
-7
lines changed Expand file tree Collapse file tree 2 files changed +47
-7
lines changed Original file line number Diff line number Diff line change 66## Contents
77
88 * [ x.y.z] ( #xyz )
9+ * [ 11.7.0] ( #1170 )
10+ * [ StoryBoard] ( #storyboard )
11+ * [ 10.4.0] ( #1040 )
912 * [ Configure tests to only run on specific machine] ( #configure-tests-to-only-run-on-specific-machine )
1013 * [ 10.3.0] ( #1030 )
1114 * [ Configure alternative Source File Directory Finder] ( #configure-alternative-source-file-directory-finder )
Original file line number Diff line number Diff line change 33# StoryBoard
44
55<!-- toc -->
6-
76## Contents
87
9- * [ Paintables] ( #paintables )
10- * [ Why] ( #why )
11- * [ How To] ( #how-to )
12- * [ create an animated gif] ( #create-an-animated-gif ) <!-- endToc -->
8+ * [ How to verify sequences] ( #how-to-verify-sequences ) <!-- endToc -->
139
1410## How to verify sequences
1511
1612StoryBoards can be very helpful to tell a story of steps that happen over time.
1713Here is a simple example
1814
19- snippet: StoryBoardExample
15+ <!-- snippet: StoryBoardExample -->
16+ <a id =' snippet-storyboardexample ' ></a >
17+ ``` java
18+ Approvals . verify(new StoryBoard (). add(gameOfLife). addFrames(3 , gameOfLife:: advance));
19+ ```
20+ <sup ><a href =' /approvaltests-tests/src/test/java/org/approvaltests/StoryBoardTest.java#L21-L23 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-storyboardexample ' title =' Start of snippet ' >anchor</a ></sup >
21+ <!-- endSnippet -->
2022
2123which produces
2224
23- snippet: StoryBoardTest.gameOfLife.approved.txt
25+ <!-- snippet: StoryBoardTest.gameOfLife.approved.txt -->
26+ <a id =' snippet-StoryBoardTest.gameOfLife.approved.txt ' ></a >
27+ ``` txt
28+ Initial:
29+ . . . . .
30+ . . . . .
31+ . x x x .
32+ . . . . .
33+ . . . . .
34+
35+
36+ Frame #1:
37+ . . . . .
38+ . . x . .
39+ . . x . .
40+ . . x . .
41+ . . . . .
42+
43+
44+ Frame #2:
45+ . . . . .
46+ . . . . .
47+ . x x x .
48+ . . . . .
49+ . . . . .
50+
51+
52+ Frame #3:
53+ . . . . .
54+ . . x . .
55+ . . x . .
56+ . . x . .
57+ . . . . .
58+ ```
59+ <sup ><a href =' /approvaltests-tests/src/test/java/org/approvaltests/StoryBoardTest.gameOfLife.approved.txt#L1-L30 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-StoryBoardTest.gameOfLife.approved.txt ' title =' Start of snippet ' >anchor</a ></sup >
60+ <!-- endSnippet -->
You can’t perform that action at this time.
0 commit comments