From eac80b3843dbd94de2fc00e29c885dd90e261679 Mon Sep 17 00:00:00 2001 From: Clemens Fries Date: Sun, 25 Nov 2018 11:06:32 +0100 Subject: Rename project from 'clockrotz' to 'lettersnail' You can't always wait for the right name to appear before starting a project, so I chose a strange name that wasn't good. I finally came up with a name I like. --- clockrotz_test.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 clockrotz_test.go (limited to 'clockrotz_test.go') diff --git a/clockrotz_test.go b/clockrotz_test.go deleted file mode 100644 index 325438c..0000000 --- a/clockrotz_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package main - -import ( - "github.com/stretchr/testify/assert" - "testing" - . "github.com/githubert/clockrotz/common" -) - -func TestExpandTilde(t *testing.T) { - c := NewConfiguration() - - c.Set(CONF_WORKDIR, "/foo") - expandTilde(c) - assert.Equal(t, "/foo", c.Get(CONF_WORKDIR)) - - c.Set(CONF_WORKDIR, "~/foo") - expandTilde(c) - assert.Equal(t, userHome() + "/foo", c.Get(CONF_WORKDIR)) - - // Shortest possible - c.Set(CONF_WORKDIR, "~/") - expandTilde(c) - assert.Equal(t, userHome(), c.Get(CONF_WORKDIR)) - - // Single character workdir with only a tilde - c.Set(CONF_WORKDIR, "~") - expandTilde(c) - assert.Equal(t, userHome(), c.Get(CONF_WORKDIR)) - - // Ignored tilde - c.Set(CONF_WORKDIR, "~test") - expandTilde(c) - assert.Equal(t, "~test", c.Get(CONF_WORKDIR)) -} \ No newline at end of file -- cgit