From 1de1c267b3ff013f5198ee1e1d5d7def9128a7c2 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 21 Sep 2019 13:03:34 +0200 Subject: [PATCH] :white_check_mark: Update buggy chuck script --- tests/benchmark/method-call.ck | 44 ++++++++++++---------------------- 1 file changed, 15 insertions(+), 29 deletions(-) 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() >>>; -- 2.43.0