Permalink
Browse files

Add in a lot of stub tests that we are going to want to fill in befor…

…e this library becomes stable
  • Loading branch information...
1 parent 8cf5375 commit 077ec4f548ad8dd416b7c22227cf3d271c64a1c1 @Whiteknight committed May 15, 2011
Showing with 55 additions and 0 deletions.
  1. +28 −0 t/memoize/Memoize.t
  2. +9 −0 t/memoize/ProxyBasedMemoizer.t
  3. +9 −0 t/memoize/cache/Item.t
  4. +9 −0 t/memoize/cache/SimpleString.t
View
@@ -48,4 +48,32 @@ class Test::Memoize {
}))(50);
$!assert.equal($answer, 12586269025);
}
+
+ method memoize_proxy() {
+ $!status.unimplemented("Need test for this");
+ }
+
+ method memoize_method() {
+ $!status.unimplemented("Need test for this");
+ }
+
+ method unmemoize_method() {
+ $!status.unimplemented("Need test for this");
+ }
+
+ method get_proxy_cache() {
+ $!status.unimplemented("Need test for this");
+ }
+
+ method set_proxy_cache() {
+ $!status.unimplemented("Need test for this");
+ }
+
+ method get_proxy_func() {
+ $!status.unimplemented("Need test for this");
+ }
+
+ method set_proxy_cache() {
+ $!status.unimplemented("Need test for this");
+ }
}
@@ -0,0 +1,9 @@
+INIT {
+ pir::load_bytecode("rosella/test.pbc");
+ pir::load_bytecode("rosella/memoize.pbc");
+}
+
+Rosella::Test::test(Test::Memoize::ProxyBased);
+
+class Test::Memoize::Cache::ProxyBased {
+}
View
@@ -0,0 +1,9 @@
+INIT {
+ pir::load_bytecode("rosella/test.pbc");
+ pir::load_bytecode("rosella/memoize.pbc");
+}
+
+Rosella::Test::test(Test::Memoize::Cache::Item);
+
+class Test::Memoize::Cache::Item {
+}
@@ -0,0 +1,9 @@
+INIT {
+ pir::load_bytecode("rosella/test.pbc");
+ pir::load_bytecode("rosella/memoize.pbc");
+}
+
+Rosella::Test::test(Test::Memoize::Cache::SimpleString);
+
+class Test::Memoize::Cache::SimpleString {
+}

0 comments on commit 077ec4f

Please sign in to comment.