From: fennecdjay Date: Sat, 21 Sep 2019 11:03:34 +0000 (+0200) Subject: :white_check_mark: Update buggy chuck script X-Git-Tag: nightly~2215^2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=refs%2Fpull%2F146%2Fhead;p=gwion.git :white_check_mark: Update buggy chuck script --- diff --git a/tests/benchmark/method-call.ck b/tests/benchmark/method-call.ck index e2029da7..5e09599e 100644 --- a/tests/benchmark/method-call.ck +++ b/tests/benchmark/method-call.ck @@ -2,7 +2,6 @@ class Toggle { int state; fun int value() { return state; } fun Toggle activate() { -//<<<"supr">>>; !state => state; return this; } @@ -21,29 +20,26 @@ class NthToggle extends Toggle { 100000 => int n; -1 => n; - - Toggle toggle; true => int val => toggle.state; -//repeat(n) { -// toggle.activate().value() => val; -// toggle.activate().value() => val; -// toggle.activate().value() => val; -// toggle.activate().value() => val; -// toggle.activate().value() => val; -// toggle.activate().value() => val; -// toggle.activate().value() => val; -// toggle.activate().value() => val; -// toggle.activate().value() => val; -// toggle.activate().value() => val; -//} +repeat(n) { + toggle.activate().value() => val; + toggle.activate().value() => val; + toggle.activate().value() => val; + toggle.activate().value() => val; + toggle.activate().value() => val; + toggle.activate().value() => val; + toggle.activate().value() => val; + toggle.activate().value() => val; + toggle.activate().value() => val; + toggle.activate().value() => val; +} -<<>>; +<<< toggle.value() >>>; NthToggle ntoggle; -<< val => ntoggle.state>>>; +true => val => ntoggle.state; 3 => ntoggle.countMax; repeat(n) { @@ -59,14 +55,4 @@ repeat(n) { ntoggle.activate().value() => val; } -<<>>; - -// -//Toggle @t; -//ntoggle @=> t; -//<<>>; -//<<>>; -//toggle @=> t; -//<<>>; -//<<>>; -<<>>; +<<< ntoggle.value() >>>;