render_example_test.gno
0.44 Kb · 18 lines
1package lottery
2
3// ExampleRender pins the realm's Render output as a testable example.
4func ExampleRender() {
5 print(Render(""))
6 // Output:
7 // # Lottery
8 //
9 // Enter the open round, then anyone can draw once it has at least two players. The winner is picked from the block height and a new round opens automatically.
10 //
11 // ## Round 1 (open)
12 //
13 // _No entrants yet. Call `Enter` to join._
14 //
15 // ## Past winners
16 //
17 // _No rounds drawn yet._
18}