Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Corret a test for default constructor semantics. Also skip the variou…

…s tests related to with, since signature literals aren't yet handled properly, nor is Signature.ACCEPTS implemented.
  • Loading branch information...
commit 814788cf4d6d36ce2b568d2486599c951161917c 1 parent c636782
@jnthn authored
Showing with 19 additions and 17 deletions.
  1. +8 −7 t/returning.t
  2. +11 −10 t/with.t
View
15 t/returning.t
@@ -20,10 +20,10 @@ class YakStore {
}
class YakShaving {
- has $!yak-store;
- has $!yak-shaver;
+ has $.yak-store;
+ has $.yak-shaver;
method proccess() {
- for $!yak-store.get-all-yaks() -> $yak {
+ for $!yak-store.get-all-yaks() -> $yak {
unless $yak.shaved {
$!yak-shaver.shave($yak);
}
@@ -46,7 +46,8 @@ check-mock($store,
*.called('get-all-yaks', times => 1)
);
-check-mock($shaver,
- *.called('shave', times => 2, with => :($ where { !$^y.shaved })),
- *.never-called('shave', with => :($ where { $^y.shaved }))
-);
+skip('with not supported yet', 2);
+#check-mock($shaver,
+# *.called('shave', times => 2, with => :($ where { !$^y.shaved })),
+# *.never-called('shave', with => :($ where { $^y.shaved }))
+#);
View
21 t/with.t
@@ -16,13 +16,14 @@ $p.order_beer(2);
$p.order_beer(1);
$p.throw(Party.new);
-check-mock($p,
- *.called('order_beer', times => 2),
- *.called('order_beer', times => 1, with => \(1)),
- *.called('order_beer', times => 1, with => \(2)),
- *.never-called('order_beer', with => \(10)),
- *.called('throw', with => :(Party)),
- *.never-called('throw', with => :(Glass)),
- *.called('order_beer', times => 2, with => :($ where { $^n < 10 })),
- *.never-called('order_beer', with => :($ where { $^n >= 10 })),
-);
+skip('with not supported yet', 8);
+#check-mock($p,
+# *.called('order_beer', times => 2),
+# *.called('order_beer', times => 1, with => \(1)),
+# *.called('order_beer', times => 1, with => \(2)),
+# *.never-called('order_beer', with => \(10)),
+# *.called('throw', with => :(Party)),
+# *.never-called('throw', with => :(Glass)),
+# *.called('order_beer', times => 2, with => :($ where { $^n < 10 })),
+# *.never-called('order_beer', with => :($ where { $^n >= 10 })),
+#);

0 comments on commit 814788c

Please sign in to comment.
Something went wrong with that request. Please try again.