From 7dd00477eafa5096ffae7b52bd83c1d2db79571c Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Sat, 28 May 2022 22:12:17 +0000 Subject: [PATCH] chore: switch to unit tests Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com> --- .../r/profile/integration0_filetest.gno | 16 ---------------- examples/gno.land/r/profile/profiles_test.gno | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 16 deletions(-) delete mode 100644 examples/gno.land/r/profile/integration0_filetest.gno create mode 100644 examples/gno.land/r/profile/profiles_test.gno diff --git a/examples/gno.land/r/profile/integration0_filetest.gno b/examples/gno.land/r/profile/integration0_filetest.gno deleted file mode 100644 index 0129fb1a7c5..00000000000 --- a/examples/gno.land/r/profile/integration0_filetest.gno +++ /dev/null @@ -1,16 +0,0 @@ -package main - -import ( - "gno.land/r/profile" -) - -func main() { - println(profile.Render("")) - //_ = profile.Render - // various data types - // avatar - // ip address -} - -// Output: -// a diff --git a/examples/gno.land/r/profile/profiles_test.gno b/examples/gno.land/r/profile/profiles_test.gno new file mode 100644 index 00000000000..6792a250c75 --- /dev/null +++ b/examples/gno.land/r/profile/profiles_test.gno @@ -0,0 +1,17 @@ +package profile + +import ( + "fmt" + "testing" + + "gno.land/r/profile" +) + +func TestRender(t *testing.T) { + got := profile.Render("") + fmt.Println(got) + //_ = profile.Render + // various data types + // avatar + // ip address +}