summaryrefslogtreecommitdiffstats
path: root/nserver/tests/protocol_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'nserver/tests/protocol_tests.c')
-rw-r--r--nserver/tests/protocol_tests.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nserver/tests/protocol_tests.c b/nserver/tests/protocol_tests.c
index afb3906..6e03816 100644
--- a/nserver/tests/protocol_tests.c
+++ b/nserver/tests/protocol_tests.c
@@ -14,6 +14,9 @@ char *test_sscreate()
rc = sscreate("/crimson");
mu_assert(rc == 1, "sscreate failed 2");
+ rc = sscreate("/crimson/sky");
+ mu_assert(rc == 0, "sscreate failed 3");
+
return NULL;
}
@@ -42,6 +45,12 @@ char *test_sssample()
mean = sssample("/ruby", 48);
mu_assert(mean == -1, "sssample failed 6");
+ mean = sssample("/crimson/sky", 42);
+ mu_assert(mean == 42.0, "sssample failed 7");
+
+ mean = sssample("/crimson", 10);
+ mu_assert(mean == 15.20, "sssample failed 8");
+
return NULL;
}