Skip to content

Commit

Permalink
fix: improve showcase test
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Aug 10, 2023
1 parent 45d5a6c commit 7dfaeeb
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 31 deletions.
22 changes: 22 additions & 0 deletions examples/gno.land/r/demo/showcase/showcase_cmd_filetest.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package main

import (
"gno.land/r/demo/showcase"
)

func main() {
println(showcase.Render("p-avl/Store-Example"))
}

// Output:
// # Store Example
//
//
// ---
//
// XXX: show how data is stored in an avl.Tree
//
//
// ---
//
// [[Back]](/r/demo/showcase:p-avl)
28 changes: 28 additions & 0 deletions examples/gno.land/r/demo/showcase/showcase_home_filetest.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package main

import (
"gno.land/r/demo/showcase"
)

func main() {
println(showcase.Render(""))
}

// Output:
// # Showcase
//
//
// Package showcase provides a framework for creating small modules that showcase numerous details and expose various usages.
//
//
//
// The primary goal is to facilitate easy demonstration and exploration of small features.
// Modules self-register, expose commands, and demonstrate different aspects.
// This framework encourages experimentation and creativity, allowing developers to easily add new modules while keeping the main files untouched.
//
// - [p/avl](/r/demo/showcase:p-avl)
// - [Store Example](/r/demo/showcase:p-avl/Store-Example)
// - [p/bf](/r/demo/showcase:p-bf)
// - [Example](/r/demo/showcase:p-bf/Example)
// - [p/svg](/r/demo/showcase:p-svg)
// - [Example](/r/demo/showcase:p-svg/Example)
23 changes: 23 additions & 0 deletions examples/gno.land/r/demo/showcase/showcase_module_filetest.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package main

import (
"gno.land/r/demo/showcase"
)

func main() {
println(showcase.Render("p-avl"))
}

// Output:
// # p/avl
//
//
// Helper to store data in an avl.Tree
//
// - [Store Example](/r/demo/showcase:p-avl/Store-Example)
//
//
//
// ---
//
// [[Back]](/r/demo/showcase:)
28 changes: 0 additions & 28 deletions examples/gno.land/r/demo/showcase/showcase_test.gno

This file was deleted.

13 changes: 10 additions & 3 deletions examples/gno.land/r/demo/showcase/z0_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ func main() {
// Package showcase provides a framework for creating small modules that showcase numerous details and expose various usages.
//
//
// The primary goal is to facilitate easy demonstration and exploration of small features. Modules self-register, expose commands, and demonstrate different aspects. This framework encourages experimentation and creativity, allowing developers to easily add new modules while keeping the main files untouched.
//
// - [p/avl](/r/demo/showcase:p/avl)
// - [p/avl.Example](/r/demo/showcase:p/avl.Example)
// The primary goal is to facilitate easy demonstration and exploration of small features.
// Modules self-register, expose commands, and demonstrate different aspects.
// This framework encourages experimentation and creativity, allowing developers to easily add new modules while keeping the main files untouched.
//
// - [p/avl](/r/demo/showcase:p-avl)
// - [Store Example](/r/demo/showcase:p-avl/Store-Example)
// - [p/bf](/r/demo/showcase:p-bf)
// - [Example](/r/demo/showcase:p-bf/Example)
// - [p/svg](/r/demo/showcase:p-svg)
// - [Example](/r/demo/showcase:p-svg/Example)

0 comments on commit 7dfaeeb

Please sign in to comment.