test/browser.test.js in rubyjs-0.7.0 vs test/browser.test.js in rubyjs-0.7.1

- old
+ new

@@ -45,11 +45,11 @@ // 1 -> [1] // [1] -> [[1]] // [] -> [[]] // [1,2] -> [1,2] // -function a$j(a) +function a$l(a) { if (a===undefined) return []; if (a.constructor!=Array || a.length<2) return [a]; return a; } @@ -59,20 +59,20 @@ // // As super is used quite rarely, we dont optimize for it. // // object, method, iterator, arguments // -function a$l(o, m, i, a) +function a$k(o, m, i, a) { var r = o[m]; // method in current class var c = o.a$g.a$e; while (r === c.a$d.prototype[m]) c = c.a$e; return c.a$d.prototype[m].apply(o, [i].concat(a)); } -function a$k(o, m, a) +function a$j(o, m, a) { var r = o[m]; // method in current class var c = o.a$g.a$e; while (r === c.a$d.prototype[m]) c = c.a$e; @@ -268,11 +268,11 @@ } } } } // method map -var a$h = {"$K":"test","$aM":"end","$aO":"sub","$v":"each","$3":"m","$2":"new_from_jsobject","$x":"loop","$8":"to_f","$1":"%","$bd":"member?","$M":"collect","$aX":"test_three_times_indirect","$al":"&","$a6":"three_times_yield","$Z":"new_from_key_value_list","$aT":"test_loop2","$f":"===","$aS":"three_times_block","$D":"==","$aY":"three_times_indirect","$at":"reverse","$Q":"map","$ae":"downto","$9":"to_i","$ak":"times","$t":"p","$aK":"include?","$s":"proc","$b":"allocate","$U":"keys","$S":"reject","$a1":"three_times_yield2","$as":"size","$ar":"*","$L":"+","$aa":"delete","$Y":"values","$aB":"unshift","$aW":"return_in_block","$ac":"upto","$aD":"dup","$aF":"rjust","$ag":"-","$bf":"not_a_method","$q":"nil?","$a":"new","$aV":"test_while_loop","$ai":"/","$O":"call","$E":"message","$aA":"push","$y":"is_a?","$aQ":"split","$G":"main","$e":"name","$l":"empty?","$_":"to_splat","$J":"jage","$j":"raise","$0":"length","$o":"to_s","$af":">=","$au":"clear","$7":"c_method","$ab":"array","$aj":"|","$h":"kind_of?","$P":"find_all","$am":"~","$aU":"loop2","$V":"[]","$a0":"test_three_times_yield2","$aR":"strip","$a5":"test_return_in_block","$ap":"-@","$X":"[]=","$ah":"succ","$B":"hash","$z":"class","$i":"inspect","$aC":"reverse!","$a2":"test_three_times_block","$an":"^","$a4":"test_three_times_yield","$p":"__send","$g":"eql?","$ay":"pop","$C":"method","$5":"<","$I":"wau","$aw":"first","$aL":"begin","$N":"<<","$aG":"ljust","$d":"__invoke","$ao":">","$ad":"<=","$c":"initialize","$w":"send","$6":"a_method","$r":"respond_to?","$a3":"test_loop","$k":"shift","$be":"blah_blah","$aN":"exclude_end?","$aq":"+@","$T":"select","$H":"miau","$R":"to_a","$n":"method_missing","$aE":"index","$aP":"=~","$aZ":"test_proc","$W":"join","$ax":"each_with_index","$A":"tap","$av":"last","$m":"instance_of?","$aJ":"gsub","$u":"puts","$az":"to_ary"}; +var a$h = {"$G":"test","$Q":"sub","$aI":"end","$v":"each","$ak":"sort","$a_":"to_f","$a8":"new_from_jsobject","$at":"m","$x":"loop","$$":"%","$am":"calc","$I":"collect","$aJ":"member?","$aU":"test_three_times_indirect","$ac":"&","$a3":"three_times_yield","$aK":"new_from_key_value_list","$aQ":"test_loop2","$f":"===","$aP":"three_times_block","$8":"==","$bd":"reverse","$a$":"to_i","$aV":"three_times_indirect","$6":"downto","$M":"map","$ab":"times","$t":"p","$aH":"include?","$a5":"keys","$s":"proc","$b":"allocate","$O":"reject","$aY":"three_times_yield2","$S":"size","$ai":"*","$R":"+","$aN":"delete","$bj":"unshift","$a7":"values","$aT":"return_in_block","$5":"upto","$bl":"dup","$T":"rjust","$U":"-","$bc":"not_a_method","$q":"nil?","$a":"new","$bi":"push","$aS":"test_while_loop","$_":"/","$K":"call","$D":"message","$y":"is_a?","$0":"split","$F":"main","$e":"name","$l":"empty?","$ba":"to_splat","$as":"add_msg","$aq":"jage","$j":"raise","$V":"length","$o":"to_s","$be":"clear","$7":">=","$ax":"c_method","$aO":"array","$aa":"|","$h":"kind_of?","$L":"find_all","$ad":"~","$aR":"loop2","$X":"[]","$1":"strip","$aX":"test_three_times_yield2","$a2":"test_return_in_block","$ag":"-@","$al":"[]=","$9":"succ","$bk":"reverse!","$B":"hash","$z":"class","$i":"inspect","$aZ":"test_three_times_block","$ae":"^","$a1":"test_three_times_yield","$bg":"pop","$p":"__send","$g":"eql?","$C":"method","$Z":"<","$ap":"wau","$4":"first","$aG":"begin","$J":"<<","$Y":"ljust","$d":"__invoke","$af":">","$W":"<=","$c":"initialize","$w":"send","$r":"respond_to?","$aw":"a_method","$a0":"test_loop","$k":"shift","$aM":"run","$bb":"blah_blah","$aF":"exclude_end?","$ah":"+@","$P":"select","$ao":"miau","$N":"to_a","$n":"method_missing","$2":"index","$H":"=~","$bf":"each_with_index","$a6":"join","$aW":"test_proc","$A":"tap","$aj":"addPrint","$aD":"last","$m":"instance_of?","$bh":"to_ary","$3":"gsub","$u":"puts"}; var a$f = {}; for (var i in a$h) a$f[a$h[i]] = i; $b = a$d({a$e: nil,a$f: {$a: /* Class.new */ function(_e,_a,_b,_c){var self,_d; @@ -592,133 +592,117 @@ self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; return self.toString()} -}});$l = a$d({a$j: [],a$e: $k,a$c: "Boolean",a$d: Boolean,a$h: {$D: -/* Boolean#== */ -function(_b,_a){var self; -self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -; -return (self == _a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==18))return _c.a$a; -throw(_c)}} - -,$o: -/* Boolean#to_s */ -function(){var self; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -return (self == true ? 'true' : 'false')} - -,$i: -/* Boolean#inspect */ -function(){var self; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -return (self == true ? 'true' : 'false')} - -}});$m = a$d({a$j: [],a$e: $k,a$c: "T_TestSend::C",a$h: {$n: -/* T_TestSend::C#method_missing */ -function(_d,_a){var self,_b,_c,_e,_f; -_f=nil; -self=this; -_e=_d==null?nil:_d; -try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -_b=[]; -for(_c=2;_c<arguments.length;_c++)_b.push(arguments[_c]); -; -_f=self.$t(nil,("mm: " + (_a).$o() + (", ").$o() + (_b).$o())); -return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==19))return _g.a$a; -throw(_g)}} - -}});$f = a$d({a$j: [],a$e: $k,a$c: "Exception",a$h: {$E: +}});$f = a$d({a$j: [],a$e: $k,a$c: "Exception",a$h: {$D: /* Exception#message */ function(){var self,_a; _a=nil; self=this; -if(self.$F==null)self.$F=nil; -_a=self.$F; +if(self.$E==null)self.$E=nil; +_a=self.$E; return _a} ,$o: /* Exception#to_s */ function(){var self,_a; _a=nil; self=this; -if(self.$F==null)self.$F=nil; -_a=self.$F; +if(self.$E==null)self.$E=nil; +_a=self.$E; return _a} ,$c: /* Exception#initialize */ function(_d,_a){var self,_c,_b; _b=nil; self=this; try{if(arguments.length>2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); if(_a==null)_a=nil; ; -if((_c=_a.$q(),_c!==false&&_c!==nil)){_b=self.$F=self.$z().$e()}else{_b=self.$F=_a}; -return _b}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==20))return _e.a$a; +if((_c=_a.$q(),_c!==false&&_c!==nil)){_b=self.$E=self.$z().$e()}else{_b=self.$E=_a}; +return _b}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==18))return _e.a$a; throw(_e)}} ,$i: /* Exception#inspect */ function(){var self,_a; _a=nil; self=this; -if(self.$F==null)self.$F=nil; +if(self.$E==null)self.$E=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=("#<" + (self.$z().$e()).$o() + (": ").$o() + (self.$F).$o() + (">").$o()); +_a=("#<" + (self.$z().$e()).$o() + (": ").$o() + (self.$E).$o() + (">").$o()); return _a} -}});$n = a$d({a$j: [],a$e: $f,a$c: "StandardError"});$o = a$d({a$j: [],a$e: $n,a$c: "NameError"});$g = a$d({a$j: [],a$e: $o,a$c: "NoMethodError"});$r = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestLebewesen::TestLebewesen.main */ -function(){var self,_a,_b,_c,_d; +}});$l = a$d({a$j: [],a$e: $f,a$c: "StandardError"});$m = a$d({a$j: [],a$e: nil,a$c: "T_TestYield"});$n = a$d({a$j: [],a$e: nil,a$c: "T_TestIf"});$o = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestException::TestException.main */ +function(){var self,_b,_c,_d; _d=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=$p.$a(nil,"AA-BB","Leni"); -_b=$p.$a(nil,"AC-DC","Flocki"); -_c=$q.$a(nil,"AA-ZZ"); -_a.$H(); -_c.$I(); -_d=_c.$J(nil,_a); +self.$t(nil,"before block"); +self.$t(nil,"in block"); +self.$t(nil,"after block"); +try{self.$t(nil,"block"); +self.$t(nil,"else")}catch(_a){if(_a instanceof a$c)throw(_a); +if((_c=$l.$f(nil,_a),_c!==false&&_c!==nil)){self.$t(nil,"rescue")}else{if((_c=$f.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a; +self.$t(nil,"another rescue"); +self.$t(nil,_b)}else{throw(_a)}}}; +self.$t(nil,$c.$a(nil,"test")); +self.$u(nil,"before begin"); +try{try{self.$u(nil,"before raise"); +self.$j(nil,$f,"blah"); +self.$u(nil,"after raise")}catch(_a){if(_a instanceof a$c)throw(_a); +if((_c=$l.$f(nil,_a),_c!==false&&_c!==nil)){self.$u(nil,"noooo")}else{if((_c=$f.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a; +self.$t(nil,_b); +self.$u(nil,"yes")}else{throw(_a)}}}}finally{self.$u(nil,"ensure")}; +self.$u(nil,"after begin"); +self.$u(nil,"--"); +try{try{self.$u(nil,"abc"); +self.$j(nil,"r")}catch(_a){if(_a instanceof a$c)throw(_a); +if((_c=$l.$f(nil,_a),_c!==false&&_c!==nil)){self.$t(nil,_a); +self.$u(nil,"b")}else{throw(_a)}}}finally{self.$u(nil,"e")}; +try{_d=self.$t(nil,"hallo".$o(nil,2))}catch(_a){if(_a instanceof a$c)throw(_a); +if((_c=$a.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a; +_d=self.$t(nil,_b)}else{throw(_a)}}; return _d} -},a$c: "T_TestLebewesen::TestLebewesen"});$s = a$d({a$j: [],a$e: nil,a$c: "T_TestException"});$w = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestCase::TestCase.main */ +},a$c: "T_TestException::TestException"});$p = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Foo2"});$q = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestRegexp::TestRegexp.main */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); +_a=self.$a().$G(); return _a} -},a$c: "T_TestCase::TestCase",a$h: {$K: -/* T_TestCase::TestCase#test */ -function(){var self,_a,_b,_c,_d; -_d=nil; +},a$c: "T_TestRegexp::TestRegexp",a$h: {$G: +/* T_TestRegexp::TestRegexp#test */ +function(){var self,_a,_b,_c; +_c=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=(1).$L(nil,1); -if((_b=(_c=(1).$f(nil,_a), (_c!==false&&_c!==nil) ? _c : ((3).$f(nil,_a))),_b!==false&&_b!==nil)){self.$u(nil,"NOT OKAY")}else{if((_b=(2).$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OKAY")}else{self.$u(nil,"NOT OKAY")}}; -self.$t(nil,$t.$f(nil,[])); -self.$t(nil,$c.$f(nil,$c.$a())); -_a=1; -if((_b=$u.$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OK")}else{if((_b=(1).$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OK")}}; -_a=_d=4; -if((_b=$v.$a(nil,0,3,false).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"NOT OKAY")}else{if((_b=$v.$a(nil,1,4,true).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"NOT OKAY")}else{if((_b=$v.$a(nil,2,4,false).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"OKAY")}else{_d=nil}}}; -return _d} +if((_a="hallo".$H(nil,/ll/),_a!==false&&_a!==nil)){self.$t(nil,"okay")}; +_b="hallo".$H(nil,/ll/); +self.$t(nil,_b); +"hallo".$H(nil,/(ll)/); +self.$t(nil,(RegExp.$1 || nil)); +self.$t(nil,(RegExp.$2 || nil)); +self.$t(nil,(RegExp.$3 || nil)); +"hallo".$H(nil,/a(ll)(o)/); +self.$t(nil,(RegExp.$1 || nil)); +self.$t(nil,(RegExp.$2 || nil)); +self.$t(nil,(RegExp.$3 || nil)); +_c=self.$t(nil,(RegExp.$4 || nil)); +return _c} -}});$x = a$d({a$j: [],a$e: nil,a$c: "Enumerable",a$h: {$M: +}});$r = a$d({a$j: [],a$e: nil,a$c: "Enumerable",a$h: {$I: /* Enumerable#collect */ function(_a){var self,_b,_c,_f,_h; _h=nil; self=this; _b=_a==null?nil:_a; @@ -726,34 +710,34 @@ ; _c=[]; self.$v(function(_d){var _e; var _g=nil; _e=_d==null?nil:_d; -_g=_c.$N(nil,((_f=_b,_f!==false&&_f!==nil)?_b.$O(nil,_e):_e)); +_g=_c.$J(nil,((_f=_b,_f!==false&&_f!==nil)?_b.$K(nil,_e):_e)); return _g}); _h=_c; -return _h}catch(_i){if(_i instanceof a$c && (!_i.a$b || _i.a$b==21))return _i.a$a; +return _h}catch(_i){if(_i instanceof a$c && (!_i.a$b || _i.a$b==19))return _i.a$a; throw(_i)}} -,$P: +,$L: /* Enumerable#find_all */ function(_f){var self,_a,_e,_g; _g=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; _a=[]; self.$v(function(_b){var _c; var _d=nil; _c=_b==null?nil:_b; -if((_e=_f(_c),_e!==false&&_e!==nil)){_d=_a.$N(nil,_c)}else{_d=nil}; +if((_e=_f(_c),_e!==false&&_e!==nil)){_d=_a.$J(nil,_c)}else{_d=nil}; return _d}); _g=_a; -return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==22))return _h.a$a; +return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==20))return _h.a$a; throw(_h)}} -,$Q: +,$M: /* Enumerable#map */ function(_a){var self,_b,_c,_f,_h; _h=nil; self=this; _b=_a==null?nil:_a; @@ -761,1881 +745,1521 @@ ; _c=[]; self.$v(function(_d){var _e; var _g=nil; _e=_d==null?nil:_d; -_g=_c.$N(nil,((_f=_b,_f!==false&&_f!==nil)?_b.$O(nil,_e):_e)); +_g=_c.$J(nil,((_f=_b,_f!==false&&_f!==nil)?_b.$K(nil,_e):_e)); return _g}); _h=_c; -return _h}catch(_i){if(_i instanceof a$c && (!_i.a$b || _i.a$b==23))return _i.a$a; +return _h}catch(_i){if(_i instanceof a$c && (!_i.a$b || _i.a$b==21))return _i.a$a; throw(_i)}} -,$R: +,$N: /* Enumerable#to_a */ function(){var self,_a,_e; _e=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; _a=[]; self.$v(function(_b){var _c; var _d=nil; _c=_b==null?nil:_b; -_d=_a.$N(nil,_c); +_d=_a.$J(nil,_c); return _d}); _e=_a; return _e} -,$S: +,$O: /* Enumerable#reject */ function(_f){var self,_a,_e,_g; _g=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; _a=[]; self.$v(function(_b){var _c; var _d=nil; _c=_b==null?nil:_b; -if((_e=_f(_c),_e===false||_e===nil)){_d=_a.$N(nil,_c)}else{_d=nil}; +if((_e=_f(_c),_e===false||_e===nil)){_d=_a.$J(nil,_c)}else{_d=nil}; return _d}); _g=_a; -return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==24))return _h.a$a; +return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==22))return _h.a$a; throw(_h)}} -,$T: +,$P: /* Enumerable#select */ function(_f){var self,_a,_e,_g; _g=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; _a=[]; self.$v(function(_b){var _c; var _d=nil; _c=_b==null?nil:_b; -if((_e=_f(_c),_e!==false&&_e!==nil)){_d=_a.$N(nil,_c)}else{_d=nil}; +if((_e=_f(_c),_e!==false&&_e!==nil)){_d=_a.$J(nil,_c)}else{_d=nil}; return _d}); _g=_a; -return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==25))return _h.a$a; +return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==23))return _h.a$a; throw(_h)}} -}});$y = a$d({a$j: [$x],a$e: $k,a$f: {$Z: -/* Hash.new_from_key_value_list */ -function(){var self,_a,_b,_c; -self=this; -_a=[]; -for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); -; -if((_b=_a.$0().$1(nil,2).$D(nil,0),_b===false||_b===nil)){self.$j(nil,$a)}; -_c=self.$b(); - - // - // we use an associate array to store the items. But unlike - // Javascript, the entries are arrays which contain the collisions. - // NOTE that we have to prefix the hash code with a prefix so that - // there are no collisions with methods etc. - // I prefix it for now with ":". - // - var items = {}; - var hashed_key, current_key, current_val; - - for (var i = 0; i < _a.length; i += 2) - { - current_key = _a[i]; - current_val = _a[i+1]; - hashed_key = ":" + current_key.$B(); - - // make sure that a bucket exists - if (!items[hashed_key]) items[hashed_key] = []; - - items[hashed_key].push(current_key, current_val); - } - - _c.a$k = items; - _c.a$l = nil; - return _c; - } - -,$2: -/* Hash.new_from_jsobject */ -function(_d,_a){var self,_b,_c; -_c=nil; -self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -; -_c=_b=self.$a(); -return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==29))return _e.a$a; -throw(_e)}} - -},a$c: "Hash",a$h: {$V: -/* Hash#[] */ +}});$e = a$d({a$j: [],a$e: $k,a$c: "String",a$d: String,a$h: {$R: +/* String#+ */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; - - if (!self.a$k) - { - // this is a Javascript Object, not a RubyJS Hash object. - // we directly look the key up. it's fast but not Ruby-like, - // so be careful! - - var elem = self[_a]; - return (elem == null ? nil : elem); - } - - var hashed_key = ":" + _a.$B(); - var bucket = self.a$k[hashed_key]; - - if (bucket) - { - // - // find the matching element inside the bucket - // - - for (var i = 0; i < bucket.length; i += 2) - { - if (bucket[i].$g(nil,_a)) - return bucket[i+1]; - } - } - - // no matching key found -> return default value - return self.a$l; - }catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==26))return _c.a$a; +return(self + _a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==25))return _c.a$a; throw(_c)}} -,$U: -/* Hash#keys */ -function(){var self,_b,_f; -_b=_f=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_f=self.$Q(function(_a){var _c,_d; -var _e=nil; -(_b=a$j(_a),_c=_b[0]==null?nil:_b[0],_d=_b[1]==null?nil:_b[1],_b); -_e=_c; -return _e}); -return _f} - -,$o: -/* Hash#to_s */ -function(){var self,_a,_c,_g; -_c=_g=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=[]; -self.$v(function(_b){var _d,_e; -var _f=nil; -(_c=a$j(_b),_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_c); -_a.$N(nil,_d); -_f=_a.$N(nil,_e); -return _f}); -_g=_a.$W(nil,""); -return _g} - -,$X: -/* Hash#[]= */ +,$Q: +/* String#sub */ function(_c,_a,_b){var self; self=this; try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); ; - - if (!self.a$k) - { - // this is a Javascript Object, not a RubyJS Hash object. - // we directly look the key up. it's fast but not Ruby-like, - // so be careful! - - self[_a] = _b; - return _b; - } - - var hashed_key = ":" + _a.$B(); - var bucket = self.a$k[hashed_key]; - - if (bucket) - { - // - // find the matching element inside the bucket - // - - for (var i = 0; i < bucket.length; i += 2) - { - if (bucket[i].$g(nil,_a)) - { - // overwrite value - bucket[i+1] = _b; - return _b; - } - } - // key not found in this bucket. append key, value pair to bucket - bucket.push(_a, _b); - } - else - { - // - // create new bucket - // - self.a$k[hashed_key] = [_a, _b]; - } - return _b; - }catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==28))return _d.a$a; +self.replace(pattern, replacement)}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==24))return _d.a$a; throw(_d)}} -,$v: -/* Hash#each */ -function(_a){var self; +,$H: +/* String#=~ */ +function(_b,_a){var self; self=this; -try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; - if (!self.a$k) - { - // this is a Javascript Object, not a RubyJS Hash object. - // we directly look the key up. it's fast but not Ruby-like, - // so be careful! - var key, value; - for (key in self) - { - value = self[key];; -_a([(key == null ? nil : key),(value == null ? nil : value)]); + var i = self.search(_a); + return (i == -1 ? nil : i)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==27))return _c.a$a; +throw(_c)}} - } - - return nil; - } - - var key, bucket, i; - for (key in self.a$k) - { - if (key.charAt(0) == ":") - { - bucket = self.a$k[key]; - for (i=0; i<bucket.length; i+=2) - {; -_a([bucket[i],bucket[i+1]]); - - } - } - } - return nil; - }catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==27))return _b.a$a; -throw(_b)}} - -,$c: -/* Hash#initialize */ -function(){var self; +,$T: +/* String#rjust */ +function(_f,_a,_b){var self,_c,_d,_e; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; - - self.a$k = {}; - self.a$l = nil; - return nil} - -,$Y: -/* Hash#values */ -function(){var self,_b,_f; -_b=_f=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_f=self.$Q(function(_a){var _c,_d; -var _e=nil; -(_b=a$j(_a),_c=_b[0]==null?nil:_b[0],_d=_b[1]==null?nil:_b[1],_b); -_e=_d; -return _e}); -return _f} - -,$i: -/* Hash#inspect */ -function(){var self,_a,_c,_g; -_c=_g=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a="{"; -_a=_a.$L(nil,self.$Q(function(_b){var _d,_e; -var _f=nil; -(_c=a$j(_b),_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_c); -_f=_d.$i().$L(nil,"=>").$L(nil,_e.$i()); -return _f}).$W(nil,", ")); -_a=_a.$L(nil,"}"); -_g=_a; -return _g} - -}});$z = a$d({a$j: [],a$e: nil,a$c: "T_TestExpr"});$A = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestArgs::TestArgs.main */ -function(){var self,_a,_b; -_b=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=self.$a(); -_a.$3(nil,0); -self.$u(nil,"--"); -_a.$3(nil,1,2); -self.$u(nil,"--"); -_a.$3(nil,1,2,9); -self.$u(nil,"--"); -_a.$3(nil,1,2,9,5); -self.$u(nil,"--"); -_a.$3(nil,1,2,9,5,6); -self.$u(nil,"--"); -_b=_a.$3(nil,1,2,9,5,6,7,8,9,10,11,12); -return _b} - -},a$c: "T_TestArgs::TestArgs",a$h: {$3: -/* T_TestArgs::TestArgs#m */ -function(_g,_a,_b,_c){var self,_d,_e,_f; -_f=nil; -self=this; try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -if(_b==null)_b=1; -if(_c==null)_c="hallo"; -_d=[]; -for(_e=4;_e<arguments.length;_e++)_d.push(arguments[_e]); +if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +if(_b==null)_b=" "; ; -self.$t(nil,_a); -self.$t(nil,_b); -self.$t(nil,_c); -_f=self.$t(nil,_d); -return _f}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==30))return _h.a$a; -throw(_h)}} +if((_c=_b.$l(),_c!==false&&_c!==nil)){self.$j(nil,$a,"zero width padding")}; +_d=_a.$U(nil,self.$V()); +if((_c=_d.$W(nil,0),_c!==false&&_c!==nil)){return self}; +_e=""; +while(_e.length < _d) _e += _b;; +return _e.$X(nil,0,_d).$R(nil,self)}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==26))return _g.a$a; +throw(_g)}} -}});$B = a$d({a$j: [],a$e: nil,a$c: "T_TestYield"});$C = a$d({a$j: [],a$e: $k,a$c: "T_TestLebewesen::Lebewesen",a$h: {$c: -/* T_TestLebewesen::Lebewesen#initialize */ -function(_c,_a){var self,_b; -_b=nil; +,$S: +/* String#size */ +function(){var self; self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -; -_b=self.$4=_a; -return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==31))return _d.a$a; -throw(_d)}} - -}});$q = a$d({a$j: [],a$e: $C,a$c: "T_TestLebewesen::Hund",a$h: {$I: -/* T_TestLebewesen::Hund#wau */ -function(){var self,_a; -_a=nil; -self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$u(nil,"wau wau"); -return _a} +return self.length} -,$J: -/* T_TestLebewesen::Hund#jage */ -function(_c,_a){var self,_b; -_b=nil; -self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -; -_b=self.$u(nil,"ich jage ".$L(nil,_a.$e())); -return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==32))return _d.a$a; -throw(_d)}} - -}});$D = a$d({a$j: [],a$e: nil,a$c: "T_TestSplat"});$E = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestException::TestException.main */ -function(){var self,_b,_c,_d; -_d=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -self.$t(nil,"before block"); -self.$t(nil,"in block"); -self.$t(nil,"after block"); -try{self.$t(nil,"block"); -self.$t(nil,"else")}catch(_a){if(_a instanceof a$c)throw(_a); -if((_c=$n.$f(nil,_a),_c!==false&&_c!==nil)){self.$t(nil,"rescue")}else{if((_c=$f.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a; -self.$t(nil,"another rescue"); -self.$t(nil,_b)}else{throw(_a)}}}; -self.$t(nil,$c.$a(nil,"test")); -self.$u(nil,"before begin"); -try{try{self.$u(nil,"before raise"); -self.$j(nil,$f,"blah"); -self.$u(nil,"after raise")}catch(_a){if(_a instanceof a$c)throw(_a); -if((_c=$n.$f(nil,_a),_c!==false&&_c!==nil)){self.$u(nil,"noooo")}else{if((_c=$f.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a; -self.$t(nil,_b); -self.$u(nil,"yes")}else{throw(_a)}}}}finally{self.$u(nil,"ensure")}; -self.$u(nil,"after begin"); -self.$u(nil,"--"); -try{try{self.$u(nil,"abc"); -self.$j(nil,"r")}catch(_a){if(_a instanceof a$c)throw(_a); -if((_c=$n.$f(nil,_a),_c!==false&&_c!==nil)){self.$t(nil,_a); -self.$u(nil,"b")}else{throw(_a)}}}finally{self.$u(nil,"e")}; -try{_d=self.$t(nil,"hallo".$o(nil,2))}catch(_a){if(_a instanceof a$c)throw(_a); -if((_c=$a.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a; -_d=self.$t(nil,_b)}else{throw(_a)}}; -return _d} - -},a$c: "T_TestException::TestException"});$F = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestIf::TestIf.main */ -function(){var self,_a; -_a=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=self.$a().$K(); -return _a} - -},a$c: "T_TestIf::TestIf",a$h: {$K: -/* T_TestIf::TestIf#test */ -function(){var self,_a,_b,_c,_d,_e,_f; -_f=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -if(true){self.$u(nil,"OK")}; -if(false){self.$u(nil,"NOT OK")}; -if(true){self.$u(nil,"OK")}; -if(false){self.$u(nil,"NOT OK")}; -if((_a=(_b=true, (_b!==false&&_b!==nil) ? ((_c=true, (_c!==false&&_c!==nil) ? ((_d=(_e=true, (_e!==false&&_e!==nil) ? _e : (false)), (_d!==false&&_d!==nil) ? (true) : _d)) : _c)) : _b),_a!==false&&_a!==nil)){self.$u(nil,"OK")}; -if((_a=(_b=(5).$5(nil,6), (_b!==false&&_b!==nil) ? ((6).$5(nil,7)) : _b),_a!==false&&_a!==nil)){self.$u(nil,"OK")}; -self.$t(nil,(_a=false, (_a!==false&&_a!==nil) ? _a : ("a"))); -self.$t(nil,(_a=nil, (_a!==false&&_a!==nil) ? _a : ("a"))); -self.$t(nil,(_a=true, (_a!==false&&_a!==nil) ? _a : ("a"))); -self.$t(nil,(_a="b", (_a!==false&&_a!==nil) ? _a : ("a"))); -self.$t(nil,(_a=false, (_a!==false&&_a!==nil) ? ("a") : _a)); -self.$t(nil,(_a=nil, (_a!==false&&_a!==nil) ? ("a") : _a)); -self.$t(nil,(_a=true, (_a!==false&&_a!==nil) ? ("a") : _a)); -_f=self.$t(nil,(_a="b", (_a!==false&&_a!==nil) ? ("a") : _a)); -return _f} - -}});$G = a$d({a$j: [],a$e: nil,a$c: "T_TestClass"});$H = a$d({a$j: [],a$e: nil,a$c: "T_TestClass::X"});$I = a$d({a$j: [$H],a$e: $k,a$c: "T_TestClass::A"});$J = a$d({a$j: [],a$e: $I,a$c: "T_TestClass::B"});$K = a$d({a$j: [],a$e: nil,a$c: "T_TestArray"});$0 = a$d({a$j: [],a$e: $k,a$f: {$G: -/* TestSuite.main */ -function(){var self,_c,_d,_b; -_b=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -try{self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test hash"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$L.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test yield"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$M.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test lebewesen"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$r.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test expr"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$N.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test simple output"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$O.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test if"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$F.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test class"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$P.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test case"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$w.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test splat"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$Q.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test string"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$R.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test inspect"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$S.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test regexp"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$T.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test args"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$A.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test array"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$U.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test eql"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$V.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test send"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$W.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test range"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$X.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test massign"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$Y.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test new"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -$Z.$G(); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -self.$u(nil,"Test exception"); -self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); -_b=$E.$G()}catch(_a){if(_a instanceof a$c)throw(_a); -if((_d=$f.$f(nil,_a),_d!==false&&_d!==nil)){_c=_a; -self.$t(nil,"unhandled exception"); -_b=self.$t(nil,_c)}else{throw(_a)}}; -return _b} - -},a$c: "TestSuite"});$1 = a$d({a$j: [],a$e: $k,a$c: "T_TestSend::A",a$h: {$6: -/* T_TestSend::A#a_method */ +,$X: +/* String#[] */ function(_d,_a,_b){var self,_c; -_c=nil; self=this; -try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +if(_b==null)_b=nil; ; -_c=self.$t(nil,_a,_b); -return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==33))return _e.a$a; +if((_c=_b.$q(),_c!==false&&_c!==nil)){return self.charAt(_a) || nil}else{if((_c=_b.$Z(nil,0),_c!==false&&_c!==nil)){return nil}; +return self.substring(_a, _a+_b)}}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==29))return _e.a$a; throw(_e)}} -}});$2 = a$d({a$j: [],a$e: $1,a$c: "T_TestSend::B",a$h: {$6: -/* T_TestSend::B#a_method */ -function(_d,_a,_b){var self; +,$Y: +/* String#ljust */ +function(_f,_a,_b){var self,_c,_d,_e; self=this; -var _c=arguments; -try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +if(_b==null)_b=" "; ; -self.$t(nil,"in B"); -a$k(self,'$6',_c)}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==34))return _e.a$a; -throw(_e)}} +if((_c=_b.$l(),_c!==false&&_c!==nil)){self.$j(nil,$a,"zero width padding")}; +_d=_a.$U(nil,self.$V()); +if((_c=_d.$W(nil,0),_c!==false&&_c!==nil)){return self}; +_e=""; +while(_e.length < _d) _e += _b;; +return self.$R(nil,_e.$X(nil,0,_d))}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==28))return _g.a$a; +throw(_g)}} -,$7: -/* T_TestSend::B#c_method */ -function(_c,_a){var self,_b; -_b=nil; +,$0: +/* String#split */ +function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -_b=nil; -return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==35))return _d.a$a; -throw(_d)}} +return self.split(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==30))return _c.a$a; +throw(_c)}} -}});$3 = a$d({a$j: [],a$e: $k,a$c: "NilClass",a$d: NilClass,a$h: {$8: -/* NilClass#to_f */ -function(){var self,_a; -_a=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=0.0; -return _a} - -,$q: -/* NilClass#nil? */ -function(){var self,_a; -_a=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=true; -return _a} - ,$o: -/* NilClass#to_s */ +/* String#to_s */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=""; +_a=self; return _a} -,$9: -/* NilClass#to_i */ -function(){var self,_a; -_a=nil; +,$V: +/* String#length */ +function(){var self; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=0; -return _a} +return self.length} -,$R: -/* NilClass#to_a */ -function(){var self,_a; -_a=nil; +,$1: +/* String#strip */ +function(){var self; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=[]; -return _a} +return self.replace(/^\s+/, '').replace(/\s+$/, '')} -,$_: -/* NilClass#to_splat */ -function(){var self,_a; -_a=nil; +,$l: +/* String#empty? */ +function(){var self; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=[]; -return _a} +return(self === "")} -,$i: -/* NilClass#inspect */ -function(){var self,_a; -_a=nil; +,$3: +/* String#gsub */ +function(_g,_a,_b){var self,_c,_d,_e,_f; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +if(_b==null)_b=nil; ; -_a="nil"; -return _a} +(_c=["",self,nil],_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_f=_c[2]==null?nil:_c[2],_c); +while(_e.length > 0) { + if (_f = _e.match(_a)) { + _d += _e.slice(0, _f.index);; +if((_c=_b,_c!==false&&_c!==nil)){_d=_d.$R(nil,_b)}else{_d=_d.$R(nil,_g(_f.$4()).$o())}; +_e = _e.slice(_f.index + _f[0].length); + } else { + _d += _e; _e = ''; + } + } return _d}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==32))return _h.a$a; +throw(_h)}} -}});$Q = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestSplat::TestSplat.main */ -function(){var self,_a,_b; -_b=nil; +,$2: +/* String#index */ +function(_c,_a,_b){var self; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +if(_b==null)_b=0; ; -_a=self.$a(); -_a.$3(); -_a.$d(nil,'$3',a$b([])); -_a.$3(nil,1); -_a.$d(nil,'$3',a$b([1])); -_a.$d(nil,'$3',[1].concat(a$b([]))); -_a.$3(nil,1,2); -_a.$d(nil,'$3',a$b([1,2])); -_a.$d(nil,'$3',[1].concat(a$b([2]))); -_b=_a.$d(nil,'$3',[1].concat(a$b([1,2]))); -return _b} -},a$c: "T_TestSplat::TestSplat",a$h: {$3: -/* T_TestSplat::TestSplat#m */ -function(){var self,_a,_b,_c; -_c=nil; -self=this; -_a=[]; -for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); -; -_c=self.$t(nil,_a); -return _c} + var i = self.indexOf(_a, _b); + return (i == -1) ? nil : i}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==31))return _d.a$a; +throw(_d)}} -}});$4 = a$d({a$j: [],a$e: $k,a$c: "Regexp",a$d: RegExp});$p = a$d({a$j: [],a$e: $C,a$c: "T_TestLebewesen::Katze",a$h: {$e: -/* T_TestLebewesen::Katze#name */ -function(){var self,_a; -_a=nil; -self=this; -if(self.$$==null)self.$$=nil; -_a=self.$$; -return _a} - -,$c: -/* T_TestLebewesen::Katze#initialize */ -function(_d,_a,_b){var self,_c; -_c=nil; -self=this; -try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); -; -a$l(self,'$c',nil,[_a]); -_c=self.$$=_b; -return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==36))return _e.a$a; -throw(_e)}} - -,$H: -/* T_TestLebewesen::Katze#miau */ -function(){var self,_a; -_a=nil; -self=this; -if(self.$$==null)self.$$=nil; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=self.$u(nil,"miau, ich bin ".$L(nil,self.$$)); -return _a} - -}});$P = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestClass::TestClass.main */ -function(){var self,_a; -_a=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -self.$t(nil,$I.$a().$m(nil,$I)); -self.$t(nil,$I.$a().$m(nil,$J)); -self.$t(nil,$J.$a().$m(nil,$I)); -self.$t(nil,$I.$a().$m(nil,$H)); -self.$t(nil,$J.$a().$m(nil,$H)); -self.$t(nil,$I.$a().$h(nil,$I)); -self.$t(nil,$I.$a().$h(nil,$J)); -self.$t(nil,$J.$a().$h(nil,$I)); -self.$t(nil,$I.$a().$h(nil,$H)); -self.$t(nil,$J.$a().$h(nil,$H)); -self.$t(nil,$5.$a().$h(nil,$H)); -self.$t(nil,$5.$a().$h(nil,$I)); -self.$t(nil,$5.$a().$h(nil,$J)); -self.$t(nil,$5.$a().$h(nil,$5)); -self.$t(nil,$5.$a().$h(nil,$6)); -self.$t(nil,$5.$a().$h(nil,$k)); -self.$t(nil,$5.$a().$h(nil,$i)); -self.$t(nil,$5.$a().$h(nil,$b)); -self.$t(nil,"hallo".$z().$e()); -self.$t(nil,nil.$z().$e()); -self.$t(nil,nil.$m(nil,$3)); -self.$t(nil,"hallo".$m(nil,$e)); -self.$t(nil,"hallo".$z()); -self.$t(nil,$I); -self.$t(nil,$J); -self.$t(nil,$5); -self.$t(nil,$6); -self.$t(nil,$H); -self.$t(nil,$H.$e()); -self.$t(nil,$I.$e()); -_a=self.$t(nil,$J.$e()); -return _a} - -},a$c: "T_TestClass::TestClass"});$U = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestArray::TestArray.main */ -function(){var self,_a; -_a=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=self.$a().$K(); -return _a} - -},a$c: "T_TestArray::TestArray",a$h: {$ab: -/* T_TestArray::TestArray#array */ -function(){var self,_a; -_a=nil; -self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=[1,2,null,[null,null,4]]; -return _a} - -,$K: -/* T_TestArray::TestArray#test */ +,$i: +/* String#inspect */ function(){var self,_a,_b; -_b=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=["a","b","b","b","c"]; -self.$t(nil,_a.$aa(nil,"b")); -self.$t(nil,_a); -self.$t(nil,_a.$aa(nil,"z")); -self.$u(nil,"test native JS array mapping"); -_b=self.$t(nil,self.$ab()); -return _b} +_a={ + '\b': '\\b', + '\t': '\\t', + '\n': '\\n', + '\f': '\\f', + '\r': '\\r', + '\\': '\\\\' + };; +_b=self.$3(function(_c){var _d,_e; +_d=_c==null?nil:_c; +_e=_a[_d]; +return _e ? _e : + '\\u00' + ("0" + _d.charCodeAt().toString(16)).substring(0,2);},/[\x00-\x1f\\]/); +return ('"' + _b.replace(/"/g, '\\"') + '"');} -}});$7 = a$d({a$j: [],a$e: nil,a$c: "T_TestString"});$8 = a$d({a$j: [],a$e: nil,a$c: "T_TestCase"});$9 = a$d({a$j: [],a$e: $k,a$c: "Number",a$d: Number,a$h: {$L: +}});$s = a$d({a$j: [],a$e: $k,a$c: "Number",a$d: Number,a$h: {$R: /* Number#+ */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self + _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==40))return _c.a$a; +return self + _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==36))return _c.a$a; throw(_c)}} -,$D: +,$8: /* Number#== */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self == _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==39))return _c.a$a; +return self == _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==35))return _c.a$a; throw(_c)}} -,$ae: +,$6: /* Number#downto */ function(_d,_a){var self,_b,_c; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; _b=self; -while((_c=_b.$af(nil,_a),_c!==false&&_c!==nil)){_d(_b); -_b=_b.$ag(nil,1)}; -return self}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==38))return _e.a$a; +while((_c=_b.$7(nil,_a),_c!==false&&_c!==nil)){_d(_b); +_b=_b.$U(nil,1)}; +return self}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==34))return _e.a$a; throw(_e)}} -,$ac: +,$5: /* Number#upto */ function(_d,_a){var self,_b,_c; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; _b=self; -while((_c=_b.$ad(nil,_a),_c!==false&&_c!==nil)){_d(_b); -_b=_b.$L(nil,1)}; -return self}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==37))return _e.a$a; +while((_c=_b.$W(nil,_a),_c!==false&&_c!==nil)){_d(_b); +_b=_b.$R(nil,1)}; +return self}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==33))return _e.a$a; throw(_e)}} -,$ad: +,$W: /* Number#<= */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self <= _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==41))return _c.a$a; +return self <= _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==37))return _c.a$a; throw(_c)}} -,$ag: +,$U: /* Number#- */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self - _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==42))return _c.a$a; +return self - _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==38))return _c.a$a; throw(_c)}} -,$ah: +,$9: /* Number#succ */ function(){var self; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; return self+1} -,$ai: +,$_: /* Number#/ */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self / _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==44))return _c.a$a; +return self / _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==40))return _c.a$a; throw(_c)}} ,$o: /* Number#to_s */ function(_b,_a){var self; self=this; try{if(arguments.length>2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); if(_a==null)_a=10; ; -return self.toString(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==43))return _c.a$a; +return self.toString(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==39))return _c.a$a; throw(_c)}} -,$1: +,$$: /* Number#% */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self % _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==45))return _c.a$a; +return self % _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==41))return _c.a$a; throw(_c)}} -,$al: +,$ac: /* Number#& */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self & _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==49))return _c.a$a; +return self & _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==45))return _c.a$a; throw(_c)}} -,$5: +,$Z: /* Number#< */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self < _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==48))return _c.a$a; +return self < _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==44))return _c.a$a; throw(_c)}} -,$ak: +,$ab: /* Number#times */ function(_c){var self,_a,_b; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; _a=0; -while((_b=_a.$5(nil,self),_b!==false&&_b!==nil)){_c(_a); -_a=_a.$L(nil,1)}; -return self}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==47))return _d.a$a; +while((_b=_a.$Z(nil,self),_b!==false&&_b!==nil)){_c(_a); +_a=_a.$R(nil,1)}; +return self}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==43))return _d.a$a; throw(_d)}} -,$aj: +,$aa: /* Number#| */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self | _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==46))return _c.a$a; +return self | _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==42))return _c.a$a; throw(_c)}} -,$ap: +,$ag: /* Number#-@ */ function(){var self; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; return -self} -,$ao: +,$af: /* Number#> */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self > _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==51))return _c.a$a; +return self > _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==47))return _c.a$a; throw(_c)}} -,$an: +,$ae: /* Number#^ */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self ^ _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==50))return _c.a$a; +return self ^ _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==46))return _c.a$a; throw(_c)}} -,$am: +,$ad: /* Number#~ */ function(){var self; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; return ~self} -,$af: +,$7: /* Number#>= */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self >= _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==52))return _c.a$a; +return self >= _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==48))return _c.a$a; throw(_c)}} ,$i: /* Number#inspect */ function(){var self; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; return self.toString()} -,$ar: +,$ai: /* Number#* */ function(_b,_a){var self; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return self * _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==53))return _c.a$a; +return self * _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==49))return _c.a$a; throw(_c)}} -,$aq: +,$ah: /* Number#+@ */ function(){var self; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; return self} -}});$_ = a$d({a$j: [],a$e: nil,a$c: "T_TestEql"});$t = a$d({a$j: [$x],a$e: $k,a$f: {$a: -/* Array.new */ -function(){var self; +}});$t = a$d({a$j: [],a$e: $s,a$c: "Float",a$d: Number});$u = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Object"});$y = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestHotRuby::TestHotRuby.main */ +function(){var self,_a,_b,_c; +_c=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -return []} +_a=self.$a(); +self.$u(nil,"InsertionSort"); +_a.$ak(nil,[3,6,2,5,3,7,1,8]); +self.$u(nil,"Array args"); +_b=[" World ","!"]; +_a.$d(nil,'$aj',["Hello"].concat(a$b(_b))); +self.$u(nil,"Block"); +$w.$a().$F(); +self.$u(nil,"Class"); +self.$u(nil,"PI is about"); +self.$u(nil,$x.$a().$am().$o().$X(nil,0,13)); +_c=self.$u(nil,"Const"); +return _c} -},a$c: "Array",a$d: Array,a$h: {$L: -/* Array#+ */ -function(_b,_a){var self; +},a$c: "T_TestHotRuby::TestHotRuby",a$h: {$aj: +/* T_TestHotRuby::TestHotRuby#addPrint */ +function(_e,_a,_b,_c){var self,_d; +_d=nil; self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +try{if(arguments.length!=4)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 3)')); ; -return self.concat(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==56))return _c.a$a; -throw(_c)}} +_d=self.$u(nil,_a.$R(nil,_b).$R(nil,_c)); +return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==50))return _f.a$a; +throw(_f)}} -,$N: -/* Array#<< */ -function(_b,_a){var self; +,$ak: +/* T_TestHotRuby::TestHotRuby#sort */ +function(_j,_a){var self,_c,_d,_e,_f,_g,_i; +_i=nil; self=this; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -self.push(_a); return self}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==55))return _c.a$a; -throw(_c)}} +self.$u(nil,"Before insertion sort:"); +self.$t(nil,_a); +$v.$a(nil,1,_a.$V().$U(nil,1),false).$v(function(_b){var _h=nil; +_c=_b==null?nil:_b; +_d=_c; +while((_e=(_f=_d.$7(nil,1), (_f!==false&&_f!==nil) ? (_a.$X(nil,_d).$Z(nil,_a.$X(nil,_d.$U(nil,1)))) : _f),_e!==false&&_e!==nil)){if((_e=_a.$X(nil,_d).$Z(nil,_a.$X(nil,_d.$U(nil,1))),_e!==false&&_e!==nil)){_g=_a.$X(nil,_d); +_a.$al(nil,_d,_a.$X(nil,_d.$U(nil,1))); +_a.$al(nil,_d.$U(nil,1),_g)}; +_d=_d.$U(nil,1)}; +_h=nil; +; +return _h}); +self.$u(nil,"After insertion sort:"); +_i=self.$t(nil,_a); +return _i}catch(_k){if(_k instanceof a$c && (!_k.a$b || _k.a$b==51))return _k.a$a; +throw(_k)}} -,$aa: -/* Array#delete */ -function(_b,_a){var self; +}});$x = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Pi",a$h: {$c: +/* T_TestHotRuby::Pi#initialize */ +function(){var self,_a; +_a=nil; self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; +_a=self.$an=355.0; +return _a} - var del = false; - for (var i=0; i < self.length; i++) - { - if (_a.$g(nil, self[i])) - { - self.splice(i,1); - del = true; - // stay at the current index unless we are at the last element! - if (i < self.length-1) --i; - } - } - return del ? _a : nil}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==54))return _c.a$a; -throw(_c)}} - -,$as: -/* Array#size */ -function(){var self; +,$am: +/* T_TestHotRuby::Pi#calc */ +function(){var self,_a; self=this; +if(self.$an==null)self.$an=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -return self.length} +_a=113.0; +return self.$an.$_(nil,_a)} -,$V: -/* Array#[] */ -function(_b,_a){var self; +}});$S = a$d({a$j: [],a$e: $k,a$f: {$F: +/* TestSuite.main */ +function(){var self,_c,_d,_b; +_b=nil; self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -var v = self[_a]; return (v == null ? nil : v)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==58))return _c.a$a; -throw(_c)}} +try{self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test hash"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$z.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test yield"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$A.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test insertion sort"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$B.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test lebewesen"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$C.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test expr"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$D.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test simple output"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$E.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test if"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$F.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test class"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$G.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test case"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$H.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test splat"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$I.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test string"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$J.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test inspect"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$K.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test regexp"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$q.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test args"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$L.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test array"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$M.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test eql"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$N.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test send"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$O.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test range"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$P.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test massign"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$Q.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test hot ruby"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$y.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test new"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +$R.$F(); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +self.$u(nil,"Test exception"); +self.$u(nil,"~~~~~~~~~~~~~~~~~~~~"); +_b=$o.$F()}catch(_a){if(_a instanceof a$c)throw(_a); +if((_d=$f.$f(nil,_a),_d!==false&&_d!==nil)){_c=_a; +self.$t(nil,"unhandled exception"); +_b=self.$t(nil,_c)}else{throw(_a)}}; +return _b} -,$au: -/* Array#clear */ -function(){var self; +},a$c: "TestSuite"});$T = a$d({a$j: [],a$e: nil,a$c: "T_TestArgs"});$C = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestLebewesen::TestLebewesen.main */ +function(){var self,_a,_b,_c,_d; +_d=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -self.length=0; return self} +_a=$U.$a(nil,"AA-BB","Leni"); +_b=$U.$a(nil,"AC-DC","Flocki"); +_c=$V.$a(nil,"AA-ZZ"); +_a.$ao(); +_c.$ap(); +_d=_c.$aq(nil,_a); +return _d} -,$g: -/* Array#eql? */ -function(_b,_a){var self; +},a$c: "T_TestLebewesen::TestLebewesen"});$W = a$d({a$j: [],a$e: nil,a$c: "T_TestNew"});$X = a$d({a$j: [],a$e: $k,a$c: "T_TestSend::C",a$h: {$n: +/* T_TestSend::C#method_missing */ +function(_d,_a){var self,_b,_c,_e,_f; +_f=nil; self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +_e=_d==null?nil:_d; +try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +_b=[]; +for(_c=2;_c<arguments.length;_c++)_b.push(arguments[_c]); ; +_f=self.$t(nil,("mm: " + (_a).$o() + (", ").$o() + (_b).$o())); +return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==52))return _g.a$a; +throw(_g)}} - if (!(_a instanceof Array)) return false; - if (self.length != _a.length) return false; - - // - // compare element-wise - // - for (var i = 0; i < self.length; i++) - { - if (! self[i].$g(nil, _a[i])) +}});$h = a$d({a$j: [],a$e: $k,a$f: {$a: +/* Proc.new */ +function(_a){var self,_b,_c; +self=this; +_b=_a==null?nil:_a; +try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +if((_c=_b,_c===false||_c===nil)){self.$j(nil,$a,"tried to create Proc object without a block")}; +return (function() { + try { + return _b.$K.apply(_b, arguments); + } catch(e) { - // - // at least for one element #eql? holds not true - // - return false; + if (e instanceof a$c) + { + if (e.a$b == null) + {; +self.$j(nil,$Y,"break from proc-closure"); +} + return e.a$a; + } + else throw(e); } - } - - return true; - }catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==57))return _c.a$a; -throw(_c)}} + })}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==53))return _d.a$a; +throw(_d)}} -,$at: -/* Array#reverse */ -function(){var self; +},a$c: "Proc",a$d: Function,a$h: {$K: +/* Proc#call */ +function(){var self,_a,_b; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +_a=[]; +for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); ; -return self.concat().reverse()} -,$av: -/* Array#last */ -function(){var self; + // TODO: use switch/case + if (_a.length == 0) return self(); + else if (_a.length == 1) return self(_a[0]); + else return self(_a);} + +}});$Y = a$d({a$j: [],a$e: $l,a$c: "LocalJumpError"});$Z = a$d({a$j: [],a$e: $s,a$c: "Bignum",a$d: Number});$0 = a$d({a$j: [],a$e: nil,a$c: "T_TestExpr"});$H = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestCase::TestCase.main */ +function(){var self,_a; +_a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -var v = self[self.length - 1]; return (v == null ? nil : v)} +_a=self.$a().$G(); +return _a} -,$o: -/* Array#to_s */ -function(){var self,_d; +},a$c: "T_TestCase::TestCase",a$h: {$G: +/* T_TestCase::TestCase#test */ +function(){var self,_a,_b,_c,_d; _d=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_d=self.$Q(function(_a){var _b; -var _c=nil; -_b=_a==null?nil:_a; -_c=_b.$o(); -return _c}).$W(); +_a=(1).$R(nil,1); +if((_b=(_c=(1).$f(nil,_a), (_c!==false&&_c!==nil) ? _c : ((3).$f(nil,_a))),_b!==false&&_b!==nil)){self.$u(nil,"NOT OKAY")}else{if((_b=(2).$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OKAY")}else{self.$u(nil,"NOT OKAY")}}; +self.$t(nil,$1.$f(nil,[])); +self.$t(nil,$c.$f(nil,$c.$a())); +_a=1; +if((_b=$2.$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OK")}else{if((_b=(1).$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OK")}}; +_a=_d=4; +if((_b=$v.$a(nil,0,3,false).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"NOT OKAY")}else{if((_b=$v.$a(nil,1,4,true).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"NOT OKAY")}else{if((_b=$v.$a(nil,2,4,false).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"OKAY")}else{_d=nil}}}; return _d} -,$X: -/* Array#[]= */ -function(_c,_a,_b){var self; +}});$w = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Foo",a$h: {$F: +/* T_TestHotRuby::Foo#main */ +function(){var self,_a,_f; +_f=nil; self=this; -try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +if(self.$ar==null)self.$ar=nil; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -return (self[_a] = _b)}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==61))return _d.a$a; -throw(_d)}} +_a="Action"; +self.$ar=" "; +_f=$3.$a().$as(function(_b){var _c,_d; +var _e=nil; +_c=_b==null?nil:_b; +_d="eloquence"; +_e=self.$u(nil,_a.$R(nil,self.$ar).$R(nil,_c).$R(nil,self.$ar).$R(nil,_d).$R(nil," - William Shakespeare")); +return _e}); +return _f} -,$v: -/* Array#each */ -function(_a){var self; +}});$F = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestIf::TestIf.main */ +function(){var self,_a; +_a=nil; self=this; -try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; +_a=self.$a().$G(); +return _a} - var elem; - for (var i=0; i < self.length; i++) { - elem = self[i];; -_a((elem == null ? nil : elem)); -} - return self}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==60))return _b.a$a; -throw(_b)}} - -,$ax: -/* Array#each_with_index */ -function(_a){var self; +},a$c: "T_TestIf::TestIf",a$h: {$G: +/* T_TestIf::TestIf#test */ +function(){var self,_a,_b,_c,_d,_e,_f; +_f=nil; self=this; -try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; - - var elem; - for (var i=0; i < self.length; i++) { - elem = self[i];; -_a([(elem == null ? nil : elem),i]); -} - return self}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==59))return _b.a$a; -throw(_b)}} +if(true){self.$u(nil,"OK")}; +if(false){self.$u(nil,"NOT OK")}; +if(true){self.$u(nil,"OK")}; +if(false){self.$u(nil,"NOT OK")}; +if((_a=(_b=true, (_b!==false&&_b!==nil) ? ((_c=true, (_c!==false&&_c!==nil) ? ((_d=(_e=true, (_e!==false&&_e!==nil) ? _e : (false)), (_d!==false&&_d!==nil) ? (true) : _d)) : _c)) : _b),_a!==false&&_a!==nil)){self.$u(nil,"OK")}; +if((_a=(_b=(5).$Z(nil,6), (_b!==false&&_b!==nil) ? ((6).$Z(nil,7)) : _b),_a!==false&&_a!==nil)){self.$u(nil,"OK")}; +self.$t(nil,(_a=false, (_a!==false&&_a!==nil) ? _a : ("a"))); +self.$t(nil,(_a=nil, (_a!==false&&_a!==nil) ? _a : ("a"))); +self.$t(nil,(_a=true, (_a!==false&&_a!==nil) ? _a : ("a"))); +self.$t(nil,(_a="b", (_a!==false&&_a!==nil) ? _a : ("a"))); +self.$t(nil,(_a=false, (_a!==false&&_a!==nil) ? ("a") : _a)); +self.$t(nil,(_a=nil, (_a!==false&&_a!==nil) ? ("a") : _a)); +self.$t(nil,(_a=true, (_a!==false&&_a!==nil) ? ("a") : _a)); +_f=self.$t(nil,(_a="b", (_a!==false&&_a!==nil) ? ("a") : _a)); +return _f} -,$aw: -/* Array#first */ -function(){var self; +}});$L = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestArgs::TestArgs.main */ +function(){var self,_a,_b; +_b=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -var v = self[0]; return (v == null ? nil : v)} +_a=self.$a(); +_a.$at(nil,0); +self.$u(nil,"--"); +_a.$at(nil,1,2); +self.$u(nil,"--"); +_a.$at(nil,1,2,9); +self.$u(nil,"--"); +_a.$at(nil,1,2,9,5); +self.$u(nil,"--"); +_a.$at(nil,1,2,9,5,6); +self.$u(nil,"--"); +_b=_a.$at(nil,1,2,9,5,6,7,8,9,10,11,12); +return _b} -,$0: -/* Array#length */ -function(){var self; +},a$c: "T_TestArgs::TestArgs",a$h: {$at: +/* T_TestArgs::TestArgs#m */ +function(_g,_a,_b,_c){var self,_d,_e,_f; +_f=nil; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(_b==null)_b=1; +if(_c==null)_c="hallo"; +_d=[]; +for(_e=4;_e<arguments.length;_e++)_d.push(arguments[_e]); ; -return self.length} +self.$t(nil,_a); +self.$t(nil,_b); +self.$t(nil,_c); +_f=self.$t(nil,_d); +return _f}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==54))return _h.a$a; +throw(_h)}} -,$ay: -/* Array#pop */ -function(){var self; +}});$4 = a$d({a$j: [],a$e: $k,a$c: "T_TestLebewesen::Lebewesen",a$h: {$c: +/* T_TestLebewesen::Lebewesen#initialize */ +function(_c,_a){var self,_b; +_b=nil; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; +_b=self.$au=_a; +return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==55))return _d.a$a; +throw(_d)}} - var elem = self.pop(); - return (elem == null ? nil : elem)} - -,$k: -/* Array#shift */ -function(){var self; +}});$V = a$d({a$j: [],a$e: $4,a$c: "T_TestLebewesen::Hund",a$h: {$ap: +/* T_TestLebewesen::Hund#wau */ +function(){var self,_a; +_a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; +_a=self.$u(nil,"wau wau"); +return _a} - var elem = self.shift(); - return (elem == null ? nil : elem)} +,$aq: +/* T_TestLebewesen::Hund#jage */ +function(_c,_a){var self,_b; +_b=nil; +self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; +_b=self.$u(nil,"ich jage ".$R(nil,_a.$e())); +return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==56))return _d.a$a; +throw(_d)}} -,$l: -/* Array#empty? */ -function(){var self; +}});$5 = a$d({a$j: [],a$e: nil,a$c: "T_TestSplat"});$d = a$d({a$j: [],a$e: $l,a$c: "TypeError"});$6 = a$d({a$j: [],a$e: $k,a$c: "MatchData",a$h: {$c: +/* MatchData#initialize */ +function(_c,_a){var self,_b; +_b=nil; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return (self.length == 0)} +_b=self.$av=_a; +return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==57))return _d.a$a; +throw(_d)}} -,$R: -/* Array#to_a */ -function(){var self,_a; -_a=nil; +}});$7 = a$d({a$j: [],a$e: $k,a$c: "T_TestSend::A",a$h: {$aw: +/* T_TestSend::A#a_method */ +function(_d,_a,_b){var self,_c; +_c=nil; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); ; -_a=self; -return _a} +_c=self.$t(nil,_a,_b); +return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==58))return _e.a$a; +throw(_e)}} -,$aA: -/* Array#push */ -function(){var self,_a,_b; +}});$8 = a$d({a$j: [],a$e: $7,a$c: "T_TestSend::B",a$h: {$aw: +/* T_TestSend::B#a_method */ +function(_d,_a,_b){var self; self=this; -_a=[]; -for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); +var _c=arguments; +try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); ; -self.push.apply(self, _a); return self} +self.$t(nil,"in B"); +a$j(self,'$aw',_c)}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==59))return _e.a$a; +throw(_e)}} -,$az: -/* Array#to_ary */ -function(){var self,_a; -_a=nil; +,$ax: +/* T_TestSend::B#c_method */ +function(_c,_a){var self,_b; +_b=nil; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -_a=self; -return _a} +_b=nil; +return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==60))return _d.a$a; +throw(_d)}} -,$aD: -/* Array#dup */ -function(){var self; +}});$9 = a$d({a$j: [],a$e: nil,a$c: "T_TestClass"});$_ = a$d({a$j: [],a$e: nil,a$c: "T_TestClass::X"});$$ = a$d({a$j: [$_],a$e: $k,a$c: "T_TestClass::A"});$aa = a$d({a$j: [],a$e: $$,a$c: "T_TestClass::B"});$ab = a$d({a$j: [],a$e: nil,a$c: "T_TestArray"});$j = a$d({a$j: [],a$e: $k,a$c: "Method",a$h: {$c: +/* Method#initialize */ +function(_f,_a,_b){var self,_c,_d,_e; +_e=nil; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); ; -return self.concat()} +(_c=[_a,_b],self.$ay=_c[0]==null?nil:_c[0],self.$az=_c[1]==null?nil:_c[1],_c); +_d=nil; +_d = _a[a$f[_b]]; + if (_d==null) _d = nil;; +if((_c=_d,_c!==false&&_c!==nil)){_e=self.$aA=_d}else{_e=self.$j(nil,$ac,("undefined method `" + (_b).$o() + ("' for class `").$o() + (_a.$z().$e()).$o() + ("'").$o()))}; +return _e}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==61))return _g.a$a; +throw(_g)}} +,$K: +/* Method#call */ +function(_c){var self,_a,_b,_d; +self=this; +_d=_c==null?nil:_c; +try{_a=[]; +for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); +; +return self.$aA.apply(self.$ay, [_d].concat(_a))}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==62))return _e.a$a; +throw(_e)}} + ,$i: -/* Array#inspect */ -function(){var self,_a,_e; -_e=nil; +/* Method#inspect */ +function(){var self,_a; +_a=nil; self=this; +if(self.$ay==null)self.$ay=nil; +if(self.$az==null)self.$az=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a="["; -_a=_a.$L(nil,self.$Q(function(_b){var _c; -var _d=nil; -_c=_b==null?nil:_b; -_d=_c.$i(); -return _d}).$W(nil,", ")); -_a=_a.$L(nil,"]"); -_e=_a; -return _e} +_a=("#<Method: " + (self.$ay.$z().$e()).$o() + ("#").$o() + (self.$az).$o() + (">").$o()); +return _a} -,$aC: -/* Array#reverse! */ -function(){var self; +}});$v = a$d({a$j: [],a$e: $k,a$c: "Range",a$h: {$8: +/* Range#== */ +function(_e,_a){var self,_b,_c,_d; +_d=nil; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -self.reverse(); return self} +if (self.constructor != _a.constructor) return false;; +_d=(_b=self.$aB.$8(nil,_a.$4()), (_b!==false&&_b!==nil) ? ((_c=self.$aC.$8(nil,_a.$aD()), (_c!==false&&_c!==nil) ? (self.$aE.$8(nil,_a.$aF())) : _c)) : _b); +return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==63))return _f.a$a; +throw(_f)}} -,$aB: -/* Array#unshift */ -function(){var self,_a,_b; +,$aG: +/* Range#begin */ +function(){var self,_a; +_a=nil; self=this; -_a=[]; -for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); +if(self.$aB==null)self.$aB=nil; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -self.unshift.apply(self, _a); return self} +_a=self.$aB; +return _a} -,$W: -/* Array#join */ -function(_i,_a){var self,_b,_d,_h; -_h=nil; +,$g: +/* Range#eql? */ +function(_e,_a){var self,_b,_c,_d; +_d=nil; self=this; -try{if(arguments.length>2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -if(_a==null)_a=""; +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -_b=""; -self.$ax(function(_c){var _e,_f; -var _g=nil; -(_d=a$j(_c),_e=_d[0]==null?nil:_d[0],_f=_d[1]==null?nil:_d[1],_d); -_b=_b.$L(nil,_e.$o()); -if((_d=_f.$D(nil,self.$0().$ag(nil,1)),_d===false||_d===nil)){_g=_b=_b.$L(nil,_a)}else{_g=nil}; -return _g}); -_h=_b; -return _h}catch(_j){if(_j instanceof a$c && (!_j.a$b || _j.a$b==62))return _j.a$a; -throw(_j)}} +if (self.constructor != _a.constructor) return false;; +_d=(_b=self.$aB.$g(nil,_a.$4()), (_b!==false&&_b!==nil) ? ((_c=self.$aC.$g(nil,_a.$aD()), (_c!==false&&_c!==nil) ? (self.$aE.$8(nil,_a.$aF())) : _c)) : _b); +return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==64))return _f.a$a; +throw(_f)}} -}});$6 = a$d({a$j: [],a$e: $k,a$c: "T_TestClass::D"});$V = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestEql::TestEql.main */ +,$aF: +/* Range#exclude_end? */ function(){var self,_a; _a=nil; self=this; +if(self.$aE==null)self.$aE=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -self.$t(nil,"a".$g(nil,"a")); -self.$t(nil,"a".$g(nil,1)); -self.$t(nil,"1".$g(nil,1)); -self.$t(nil,[1,2].$g(nil,[1,2])); -_a=self.$t(nil,(1).$g(nil,"1")); +_a=self.$aE; return _a} -},a$c: "T_TestEql::TestEql"});$R = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestString::TestString.main */ +,$aD: +/* Range#last */ function(){var self,_a; _a=nil; self=this; +if(self.$aC==null)self.$aC=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); +_a=self.$aC; return _a} -},a$c: "T_TestString::TestString",a$h: {$K: -/* T_TestString::TestString#test */ -function(){var self,_a,_i; -_i=nil; +,$o: +/* Range#to_s */ +function(){var self,_b,_a; +_a=nil; self=this; -if(self.$aH==null)self.$aH=nil; -if(self.$aI==null)self.$aI=nil; +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -self.$t(nil,"hello"); -self.$t(nil,"hallo\b\t\n"); -self.$t(nil,"hallo\\leute"); -self.$t(nil,"\"super\""); -self.$t(nil,"hello".$aE(nil,"e")); -self.$t(nil,"hello".$aE(nil,"lo")); -self.$t(nil,"hello".$aE(nil,"a")); -self.$t(nil,"hello hello".$aE(nil,"ll")); -self.$t(nil,"hello hello".$aE(nil,"ll",3)); -self.$t(nil,"hallo".$V(nil,0,1)); -self.$t(nil,"hallo".$V(nil,0,2)); -self.$t(nil,"hallo".$V(nil,0,5)); -self.$t(nil,"10".$aF(nil,10,"0")); -self.$t(nil,"10".$aF(nil,1,"blah")); -self.$t(nil,"x".$aF(nil,4,"()")); -self.$t(nil,"10".$aG(nil,10,"0")); -self.$t(nil,"10".$aG(nil,1,"blah")); -self.$t(nil,"x".$aG(nil,4,"()")); -self.$t(nil,("abc " + ((1).$L(nil,2)).$o() + (" def").$o())); -self.$aH="hallo".$i(); -self.$aI=4.5; -self.$t(nil,("" + (self.$aH).$o() + (",").$o() + (self.$aI).$o())); -_a="hallo".$aJ(nil,"l","r"); -self.$t(nil,_a); -_a="hallo".$aJ(nil,/ll/,"rr"); -self.$t(nil,_a); -_a="hallo".$aJ(function(){var _c=nil; +if((_b=self.$aE,_b!==false&&_b!==nil)){_a=("" + (self.$aB).$o() + ("...").$o() + (self.$aC).$o())}else{_a=("" + (self.$aB).$o() + ("..").$o() + (self.$aC).$o())}; +return _a} + +,$v: +/* Range#each */ +function(_c){var self,_a,_b,_d; +_d=nil; +self=this; +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; +try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_c="r"; -return _c},/l/); -self.$t(nil,_a); -_a="hallo".$aJ(function(){var _e=nil; -; -_e="blah blah"; -return _e},/ll/); -self.$t(nil,_a); -_i="hallllllo".$aJ(function(_f){var _g; -var _h=nil; -_g=_f==null?nil:_f; -_h=self.$t(nil,_g); -return _h},/(l)l/); -return _i} +_a=self.$aB; +if((_b=self.$aB.$af(nil,self.$aC),_b!==false&&_b!==nil)){return nil}; +if((_b=self.$aE,_b!==false&&_b!==nil)){while((_b=_a.$Z(nil,self.$aC),_b!==false&&_b!==nil)){_c(_a); +_a=_a.$9()}; +_d=nil; +}else{while((_b=_a.$W(nil,self.$aC),_b!==false&&_b!==nil)){_c(_a); +_a=_a.$9()}; +_d=nil; +}; +return _d}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==67))return _e.a$a; +throw(_e)}} -}});$X = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestRange::TestRange.main */ +,$aI: +/* Range#end */ function(){var self,_a; _a=nil; self=this; +if(self.$aC==null)self.$aC=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); +_a=self.$aC; return _a} -},a$c: "T_TestRange::TestRange",a$h: {$K: -/* T_TestRange::TestRange#test */ -function(){var self,_a,_i,_j; -_j=nil; +,$4: +/* Range#first */ +function(){var self,_a; +_a=nil; self=this; +if(self.$aB==null)self.$aB=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=$v.$a(nil,0,2); -self.$t(nil,_a.$aw()); -self.$t(nil,_a.$av()); -self.$t(nil,_a); -self.$t(nil,$v.$a(nil,0,2,false).$o()); -self.$t(nil,$v.$a(nil,0,2,true).$o()); -$v.$a(nil,0,4,false).$v(function(_b){var _c; -var _d=nil; -_c=_b==null?nil:_b; -_d=self.$t(nil,_c); -return _d}); -$v.$a(nil,0,4,true).$v(function(_e){var _c; -var _f=nil; -_c=_e==null?nil:_e; -_f=self.$t(nil,_c); -return _f}); -$v.$a(nil,-1,-4,false).$v(function(_g){var _c; -var _h=nil; -_c=_g==null?nil:_g; -_h=self.$t(nil,_c); -return _h}); -self.$t(nil,$v.$a(nil,0,4,false).$aK(nil,4)); -self.$t(nil,$v.$a(nil,0,4,false).$aK(nil,5)); -self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,5)); -self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,4)); -self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,3)); -self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,0)); -self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,-1)); -self.$t(nil,$v.$a(nil,-1,-5,false).$R()); -self.$t(nil,$v.$a(nil,-5,-1,false).$R()); -_i=$v.$a(nil,0,4); -self.$t(nil,_i.$aw()); -self.$t(nil,_i.$aL()); -self.$t(nil,_i.$av()); -self.$t(nil,_i.$aM()); -self.$t(nil,_i.$aN()); -_i=$v.$a(nil,1,5,true); -self.$t(nil,_i.$aw()); -self.$t(nil,_i.$aL()); -self.$t(nil,_i.$av()); -self.$t(nil,_i.$aM()); -self.$t(nil,_i.$aN()); -self.$t(nil,false.$D(nil,false)); -self.$t(nil,false.$D(nil,true)); -self.$t(nil,true.$D(nil,false)); -self.$t(nil,true.$D(nil,true)); -self.$t(nil,$v.$a(nil,0,2,false).$D(nil,$v.$a(nil,0,2,false))); -self.$t(nil,$v.$a(nil,0,2,false).$D(nil,$v.$a(nil,0,2))); -_j=self.$t(nil,$v.$a(nil,0,2,false).$D(nil,$v.$a(nil,0,2,true))); -return _j} +_a=self.$aB; +return _a} -}});$e = a$d({a$j: [],a$e: $k,a$c: "String",a$d: String,a$h: {$L: -/* String#+ */ -function(_b,_a){var self; +,$aH: +/* Range#include? */ +function(_d,_a){var self,_b,_c; +_c=nil; self=this; +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -return(self + _a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==64))return _c.a$a; -throw(_c)}} +if((_b=_a.$Z(nil,self.$aB),_b!==false&&_b!==nil)){return false}; +if((_b=self.$aE,_b!==false&&_b!==nil)){_c=_a.$Z(nil,self.$aC)}else{_c=_a.$W(nil,self.$aC)}; +return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==66))return _e.a$a; +throw(_e)}} -,$aO: -/* String#sub */ -function(_c,_a,_b){var self; +,$c: +/* Range#initialize */ +function(_f,_a,_b,_c){var self,_d,_e; +_e=nil; self=this; -try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +try{if(arguments.length<3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +if(arguments.length>4)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 3)')); +if(_c==null)_c=false; ; -self.replace(pattern, replacement)}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==63))return _d.a$a; -throw(_d)}} +(_d=[_a,_b],self.$aB=_d[0]==null?nil:_d[0],self.$aC=_d[1]==null?nil:_d[1],_d); +_e=self.$aE=((_d=_c,_d!==false&&_d!==nil)?true:false); +return _e}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==65))return _g.a$a; +throw(_g)}} -,$aP: -/* String#=~ */ -function(_b,_a){var self; +,$f: +/* Range#=== */ +function(_d,_a){var self,_b,_c; +_c=nil; self=this; +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; +if((_b=_a.$Z(nil,self.$aB),_b!==false&&_b!==nil)){return false}; +if((_b=self.$aE,_b!==false&&_b!==nil)){_c=_a.$Z(nil,self.$aC)}else{_c=_a.$W(nil,self.$aC)}; +return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==68))return _e.a$a; +throw(_e)}} - var i = self.search(_a); - return (i == -1 ? nil : i)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==66))return _c.a$a; -throw(_c)}} - -,$aF: -/* String#rjust */ -function(_f,_a,_b){var self,_c,_d,_e; +,$N: +/* Range#to_a */ +function(){var self,_a,_b,_c; self=this; -try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); -if(_b==null)_b=" "; +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -if((_c=_b.$l(),_c!==false&&_c!==nil)){self.$j(nil,$a,"zero width padding")}; -_d=_a.$ag(nil,self.$0()); -if((_c=_d.$ad(nil,0),_c!==false&&_c!==nil)){return self}; -_e=""; -while(_e.length < _d) _e += _b;; -return _e.$V(nil,0,_d).$L(nil,self)}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==65))return _g.a$a; -throw(_g)}} +_a=[]; +if((_b=self.$aB.$af(nil,self.$aC),_b!==false&&_b!==nil)){return _a}; +_c=self.$aB; +if((_b=self.$aE,_b!==false&&_b!==nil)){while((_b=_c.$Z(nil,self.$aC),_b!==false&&_b!==nil)){_a.$J(nil,_c); +_c=_c.$9()}}else{while((_b=_c.$W(nil,self.$aC),_b!==false&&_b!==nil)){_a.$J(nil,_c); +_c=_c.$9()}}; +return _a} -,$as: -/* String#size */ -function(){var self; +,$i: +/* Range#inspect */ +function(){var self,_b,_a; +_a=nil; self=this; +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -return self.length} +if((_b=self.$aE,_b!==false&&_b!==nil)){_a=("" + (self.$aB.$i()).$o() + ("...").$o() + (self.$aC.$i()).$o())}else{_a=("" + (self.$aB.$i()).$o() + ("..").$o() + (self.$aC.$i()).$o())}; +return _a} -,$V: -/* String#[] */ -function(_d,_a,_b){var self,_c; +,$aJ: +/* Range#member? */ +function(_d,_a){var self,_b,_c; +_c=nil; self=this; -try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); -if(_b==null)_b=nil; +if(self.$aB==null)self.$aB=nil; +if(self.$aC==null)self.$aC=nil; +if(self.$aE==null)self.$aE=nil; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -if((_c=_b.$q(),_c!==false&&_c!==nil)){return self.charAt(_a) || nil}else{if((_c=_b.$5(nil,0),_c!==false&&_c!==nil)){return nil}; -return self.substring(_a, _a+_b)}}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==68))return _e.a$a; +if((_b=_a.$Z(nil,self.$aB),_b!==false&&_b!==nil)){return false}; +if((_b=self.$aE,_b!==false&&_b!==nil)){_c=_a.$Z(nil,self.$aC)}else{_c=_a.$W(nil,self.$aC)}; +return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==69))return _e.a$a; throw(_e)}} -,$aG: -/* String#ljust */ -function(_f,_a,_b){var self,_c,_d,_e; +}});$a = a$d({a$j: [],a$e: $l,a$c: "ArgumentError"});$z = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestHash::TestHash.main */ +function(){var self,_a; +_a=nil; self=this; -try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); -if(_b==null)_b=" "; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -if((_c=_b.$l(),_c!==false&&_c!==nil)){self.$j(nil,$a,"zero width padding")}; -_d=_a.$ag(nil,self.$0()); -if((_c=_d.$ad(nil,0),_c!==false&&_c!==nil)){return self}; -_e=""; -while(_e.length < _d) _e += _b;; -return self.$L(nil,_e.$V(nil,0,_d))}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==67))return _g.a$a; -throw(_g)}} +_a=self.$a().$G(); +return _a} -,$aQ: -/* String#split */ -function(_b,_a){var self; +},a$c: "T_TestHash::TestHash",a$h: {$B: +/* T_TestHash::TestHash#hash */ +function(){var self; self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -return self.split(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==69))return _c.a$a; -throw(_c)}} +var el = {}; el["1"] = null; return el} -,$o: -/* String#to_s */ -function(){var self,_a; -_a=nil; +,$G: +/* T_TestHash::TestHash#test */ +function(){var self,_a,_b,_c; +_c=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self; +_a=$ad.$aK(nil,"a",6,"b",7,"1",1,1,2,"1,2","hello",[1,2],"good"); +self.$t(nil,_a.$X(nil,"a")); +self.$t(nil,_a.$X(nil,"b")); +self.$t(nil,_a.$X(nil,"1")); +self.$t(nil,_a.$X(nil,1)); +self.$t(nil,_a.$X(nil,"1,2")); +self.$t(nil,_a.$X(nil,[1,2])); +self.$u(nil,"test native JS hash"); +_c=_b=self.$B(); +return _c} + +}});$U = a$d({a$j: [],a$e: $4,a$c: "T_TestLebewesen::Katze",a$h: {$e: +/* T_TestLebewesen::Katze#name */ +function(){var self,_a; +_a=nil; +self=this; +if(self.$aL==null)self.$aL=nil; +_a=self.$aL; return _a} -,$0: -/* String#length */ -function(){var self; +,$c: +/* T_TestLebewesen::Katze#initialize */ +function(_d,_a,_b){var self,_c; +_c=nil; self=this; -if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); ; -return self.length} +a$k(self,'$c',nil,[_a]); +_c=self.$aL=_b; +return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==70))return _e.a$a; +throw(_e)}} -,$aR: -/* String#strip */ -function(){var self; +,$ao: +/* T_TestLebewesen::Katze#miau */ +function(){var self,_a; +_a=nil; self=this; +if(self.$aL==null)self.$aL=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -return self.replace(/^\s+/, '').replace(/\s+$/, '')} +_a=self.$u(nil,"miau, ich bin ".$R(nil,self.$aL)); +return _a} -,$l: -/* String#empty? */ -function(){var self; +}});$I = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestSplat::TestSplat.main */ +function(){var self,_a,_b; +_b=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -return(self === "")} +_a=self.$a(); +_a.$at(); +_a.$d(nil,'$at',a$b([])); +_a.$at(nil,1); +_a.$d(nil,'$at',a$b([1])); +_a.$d(nil,'$at',[1].concat(a$b([]))); +_a.$at(nil,1,2); +_a.$d(nil,'$at',a$b([1,2])); +_a.$d(nil,'$at',[1].concat(a$b([2]))); +_b=_a.$d(nil,'$at',[1].concat(a$b([1,2]))); +return _b} -,$aJ: -/* String#gsub */ -function(_g,_a,_b){var self,_c,_d,_e,_f; +},a$c: "T_TestSplat::TestSplat",a$h: {$at: +/* T_TestSplat::TestSplat#m */ +function(){var self,_a,_b,_c; +_c=nil; self=this; -try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); -if(_b==null)_b=nil; +_a=[]; +for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); ; -(_c=["",self,nil],_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_f=_c[2]==null?nil:_c[2],_c); -while(_e.length > 0) { - if (_f = _e.match(_a)) { - _d += _e.slice(0, _f.index);; -if((_c=_b,_c!==false&&_c!==nil)){_d=_d.$L(nil,_b)}else{_d=_d.$L(nil,_g(_f.$aw()).$o())}; -_e = _e.slice(_f.index + _f[0].length); - } else { - _d += _e; _e = ''; - } - } return _d}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==71))return _h.a$a; -throw(_h)}} +_c=self.$t(nil,_a); +return _c} -,$aE: -/* String#index */ -function(_c,_a,_b){var self; +}});$ae = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Foo_"});$af = a$d({a$j: [],a$e: $ae,a$c: "T_TestHotRuby::Bar_::Baz_",a$h: {$aM: +/* T_TestHotRuby::Bar_::Baz_#run */ +function(){var self,_a; +_a=nil; self=this; -try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); -if(_b==null)_b=0; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; +self.$u(nil,"Foo"); +_a=self.$u(nil,"Foo"); +return _a} - var i = self.indexOf(_a, _b); - return (i == -1) ? nil : i}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==70))return _d.a$a; -throw(_d)}} - -,$i: -/* String#inspect */ -function(){var self,_a,_b; +}});$G = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestClass::TestClass.main */ +function(){var self,_a; +_a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a={ - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '\\': '\\\\' - };; -_b=self.$aJ(function(_c){var _d,_e; -_d=_c==null?nil:_c; -_e=_a[_d]; -return _e ? _e : - '\\u00' + ("0" + _d.charCodeAt().toString(16)).substring(0,2);},/[\x00-\x1f\\]/); -return ('"' + _b.replace(/"/g, '\\"') + '"');} +self.$t(nil,$$.$a().$m(nil,$$)); +self.$t(nil,$$.$a().$m(nil,$aa)); +self.$t(nil,$aa.$a().$m(nil,$$)); +self.$t(nil,$$.$a().$m(nil,$_)); +self.$t(nil,$aa.$a().$m(nil,$_)); +self.$t(nil,$$.$a().$h(nil,$$)); +self.$t(nil,$$.$a().$h(nil,$aa)); +self.$t(nil,$aa.$a().$h(nil,$$)); +self.$t(nil,$$.$a().$h(nil,$_)); +self.$t(nil,$aa.$a().$h(nil,$_)); +self.$t(nil,$ag.$a().$h(nil,$_)); +self.$t(nil,$ag.$a().$h(nil,$$)); +self.$t(nil,$ag.$a().$h(nil,$aa)); +self.$t(nil,$ag.$a().$h(nil,$ag)); +self.$t(nil,$ag.$a().$h(nil,$ah)); +self.$t(nil,$ag.$a().$h(nil,$k)); +self.$t(nil,$ag.$a().$h(nil,$i)); +self.$t(nil,$ag.$a().$h(nil,$b)); +self.$t(nil,"hallo".$z().$e()); +self.$t(nil,nil.$z().$e()); +self.$t(nil,nil.$m(nil,$ai)); +self.$t(nil,"hallo".$m(nil,$e)); +self.$t(nil,"hallo".$z()); +self.$t(nil,$$); +self.$t(nil,$aa); +self.$t(nil,$ag); +self.$t(nil,$ah); +self.$t(nil,$_); +self.$t(nil,$_.$e()); +self.$t(nil,$$.$e()); +_a=self.$t(nil,$aa.$e()); +return _a} -}});$L = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestHash::TestHash.main */ +},a$c: "T_TestClass::TestClass"});$M = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestArray::TestArray.main */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); +_a=self.$a().$G(); return _a} -},a$c: "T_TestHash::TestHash",a$h: {$B: -/* T_TestHash::TestHash#hash */ -function(){var self; +},a$c: "T_TestArray::TestArray",a$h: {$aO: +/* T_TestArray::TestArray#array */ +function(){var self,_a; +_a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -var el = {}; el["1"] = null; return el} +_a=[1,2,null,[null,null,4]]; +return _a} -,$K: -/* T_TestHash::TestHash#test */ -function(){var self,_a,_b,_c; -_c=nil; +,$G: +/* T_TestArray::TestArray#test */ +function(){var self,_a,_b; +_b=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=$y.$Z(nil,"a",6,"b",7,"1",1,1,2,"1,2","hello",[1,2],"good"); -self.$t(nil,_a.$V(nil,"a")); -self.$t(nil,_a.$V(nil,"b")); -self.$t(nil,_a.$V(nil,"1")); -self.$t(nil,_a.$V(nil,1)); -self.$t(nil,_a.$V(nil,"1,2")); -self.$t(nil,_a.$V(nil,[1,2])); -self.$u(nil,"test native JS hash"); -_c=_b=self.$B(); -return _c} +_a=["a","b","b","b","c"]; +self.$t(nil,_a.$aN(nil,"b")); +self.$t(nil,_a); +self.$t(nil,_a.$aN(nil,"z")); +self.$u(nil,"test native JS array mapping"); +_b=self.$t(nil,self.$aO()); +return _b} -}});$$ = a$d({a$j: [],a$e: $9,a$c: "Float",a$d: Number});$aa = a$d({a$j: [],a$e: nil,a$c: "T_TestSend"});$ab = a$d({a$j: [],a$e: nil,a$c: "T_TestInspect"});$ac = a$d({a$j: [],a$e: nil,a$c: "T_TestMassign"});$5 = a$d({a$j: [],a$e: $J,a$c: "T_TestClass::C"});$h = a$d({a$j: [],a$e: $k,a$f: {$a: -/* Proc.new */ +}});$aj = a$d({a$j: [],a$e: nil,a$c: "T_TestString"});a$d({a$j: [],a$g: $b});$c = a$d({a$j: [],a$e: $l,a$c: "RuntimeError"});$3 = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Hoge",a$h: {$as: +/* T_TestHotRuby::Hoge#add_msg */ function(_a){var self,_b,_c; +_c=nil; self=this; _b=_a==null?nil:_a; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -if((_c=_b,_c===false||_c===nil)){self.$j(nil,$a,"tried to create Proc object without a block")}; -return (function() { - try { - return _b.$O.apply(_b, arguments); - } catch(e) - { - if (e instanceof a$c) - { - if (e.a$b == null) - {; -self.$j(nil,$ad,"break from proc-closure"); -} - return e.a$a; - } - else throw(e); - } - })}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==72))return _d.a$a; +_c=_b.$K(nil,"is"); +return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==71))return _d.a$a; throw(_d)}} -},a$c: "Proc",a$d: Function,a$h: {$O: -/* Proc#call */ -function(){var self,_a,_b; -self=this; -_a=[]; -for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); -; - - // TODO: use switch/case - if (_a.length == 0) return self(); - else if (_a.length == 1) return self(_a[0]); - else return self(_a);} - -}});$ae = a$d({a$j: [],a$e: $9,a$c: "Bignum",a$d: Number});$ad = a$d({a$j: [],a$e: $n,a$c: "LocalJumpError"});$M = a$d({a$j: [],a$e: $k,a$f: {$G: +}});$ak = a$d({a$j: [],a$e: nil,a$c: "T_TestCase"});$al = a$d({a$j: [],a$e: nil,a$c: "T_TestEql"});$2 = a$d({a$j: [],a$e: $s,a$c: "Fixnum",a$d: Number});$am = a$d({a$j: [],a$e: nil,a$c: "T_TestHash"});$ah = a$d({a$j: [],a$e: $k,a$c: "T_TestClass::D"});$A = a$d({a$j: [],a$e: $k,a$f: {$F: /* T_TestYield::TestYield.main */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); +_a=self.$a().$G(); return _a} -},a$c: "T_TestYield::TestYield",a$h: {$aT: +},a$c: "T_TestYield::TestYield",a$h: {$aQ: /* T_TestYield::TestYield#test_loop2 */ function(){var self,_a,_b,_d,_f; _f=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$u(nil,"loop2"); _a=0; -_b=self.$aU(function(){var _e=nil; +_b=self.$aR(function(){var _e=nil; ; -_a=_a.$L(nil,1); -if((_d=_a.$1(nil,2).$D(nil,1),_d!==false&&_d!==nil)){return nil}; +_a=_a.$R(nil,1); +if((_d=_a.$$(nil,2).$8(nil,1),_d!==false&&_d!==nil)){return nil}; self.$t(nil,_a); -if((_d=_a.$ao(nil,8),_d!==false&&_d!==nil)){throw(new a$c(["out",_a],null))}else{_e=nil}; +if((_d=_a.$af(nil,8),_d!==false&&_d!==nil)){throw(new a$c(["out",_a],null))}else{_e=nil}; return _e}); self.$t(nil,_b); _f=self.$u(nil,"--"); -return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==74))return _g.a$a; +return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==73))return _g.a$a; throw(_g)}} -,$aS: +,$aP: /* T_TestYield::TestYield#three_times_block */ function(_a){var self,_b,_c; _c=nil; self=this; _b=_a==null?nil:_a; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_b.$O(nil,1); -_b.$O(nil,2); -_c=_b.$O(nil,3); -return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==73))return _d.a$a; +_b.$K(nil,1); +_b.$K(nil,2); +_c=_b.$K(nil,3); +return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==72))return _d.a$a; throw(_d)}} -,$aW: +,$aT: /* T_TestYield::TestYield#return_in_block */ function(_a){var self,_b,_c; _c=nil; self=this; _b=_a==null?nil:_a; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$t(nil,"return_in_block before"); -_b.$O(); +_b.$K(); _c=self.$t(nil,"return_in_block after"); -return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==75))return _d.a$a; +return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==74))return _d.a$a; throw(_d)}} -,$aV: +,$aS: /* T_TestYield::TestYield#test_while_loop */ function(){var self,_a,_b,_c; _c=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$u(nil,"while-loop"); _a=0; -while(true){_a=_a.$L(nil,1); -if((_b=_a.$1(nil,2).$D(nil,1),_b!==false&&_b!==nil)){continue}; +while(true){_a=_a.$R(nil,1); +if((_b=_a.$$(nil,2).$8(nil,1),_b!==false&&_b!==nil)){continue}; self.$t(nil,_a); -if((_b=_a.$ao(nil,8),_b!==false&&_b!==nil)){break}}; +if((_b=_a.$af(nil,8),_b!==false&&_b!==nil)){break}}; self.$u(nil,"----"); -while((_b=_a.$ao(nil,0),_b!==false&&_b!==nil)){self.$t(nil,_a); -_a=_a.$ag(nil,1)}; +while((_b=_a.$af(nil,0),_b!==false&&_b!==nil)){self.$t(nil,_a); +_a=_a.$U(nil,1)}; _c=self.$u(nil,"--"); return _c} -,$aU: +,$aR: /* T_TestYield::TestYield#loop2 */ function(_a){var self,_b,_c; _c=nil; self=this; _b=_a==null?nil:_a; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -while(true){_b.$O()}; +while(true){_b.$K()}; _c=self.$t(nil,"not reached"); -return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==77))return _d.a$a; +return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==76))return _d.a$a; throw(_d)}} -,$aZ: +,$aW: /* T_TestYield::TestYield#test_proc */ function(){var self,_a,_d; _d=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$t(nil,"test_proc"); _a=self.$s(function(){; -throw(new a$c(0,76))}); -self.$t(nil,_a.$O()); +throw(new a$c(0,75))}); +self.$t(nil,_a.$K()); _a=$h.$a(function(){; throw(new a$c(3,null))}); -_d=self.$t(nil,_a.$O()); -return _d}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==76))return _e.a$a; +_d=self.$t(nil,_a.$K()); +return _d}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==75))return _e.a$a; throw(_e)}} -,$aX: +,$aU: /* T_TestYield::TestYield#test_three_times_indirect */ function(){var self,_d; _d=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$u(nil,"three_times_indirect"); -self.$aY(function(_a){var _b; +self.$aV(function(_a){var _b; var _c=nil; _b=_a==null?nil:_a; _c=self.$t(nil,_b); return _c}); _d=self.$u(nil,"--"); return _d} -,$a0: +,$aX: /* T_TestYield::TestYield#test_three_times_yield2 */ function(){var self,_d,_e; _e=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$u(nil,"three_times_yield2"); -_e=self.$a1(function(_a){var _b; +_e=self.$aY(function(_a){var _b; var _c=nil; _b=_a==null?nil:_a; -if((_d=_b.$D(nil,1),_d!==false&&_d!==nil)){_c=_b}else{return _b.$L(nil,1)}; +if((_d=_b.$8(nil,1),_d!==false&&_d!==nil)){_c=_b}else{return _b.$R(nil,1)}; return _c}); return _e} -,$a3: +,$a0: /* T_TestYield::TestYield#test_loop */ function(){var self,_a,_b,_d,_f; _f=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$u(nil,"loop"); _a=0; _b=self.$x(function(){var _e=nil; ; -_a=_a.$L(nil,1); -if((_d=_a.$1(nil,2).$D(nil,1),_d!==false&&_d!==nil)){return nil}; +_a=_a.$R(nil,1); +if((_d=_a.$$(nil,2).$8(nil,1),_d!==false&&_d!==nil)){return nil}; self.$t(nil,_a); -if((_d=_a.$ao(nil,8),_d!==false&&_d!==nil)){throw(new a$c(["out",_a],null))}else{_e=nil}; +if((_d=_a.$af(nil,8),_d!==false&&_d!==nil)){throw(new a$c(["out",_a],null))}else{_e=nil}; return _e}); self.$t(nil,_b); _f=self.$u(nil,"--"); -return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==78))return _g.a$a; +return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==77))return _g.a$a; throw(_g)}} -,$a2: +,$aZ: /* T_TestYield::TestYield#test_three_times_block */ function(){var self,_d; _d=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$u(nil,"three_times_block"); -self.$aS(function(_a){var _b; +self.$aP(function(_a){var _b; var _c=nil; _b=_a==null?nil:_a; _c=self.$t(nil,_b); return _c}); _d=self.$u(nil,"--"); return _d} -,$K: +,$G: /* T_TestYield::TestYield#test */ function(){var self,_b,_c,_d; _d=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -self.$a4(); -self.$a2(); +self.$a1(); +self.$aZ(); +self.$aU(); self.$aX(); self.$a0(); -self.$a3(); -self.$aT(); -self.$aV(); -try{self.$aZ()}catch(_a){if(_a instanceof a$c)throw(_a); -if((_c=$ad.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a; +self.$aQ(); +self.$aS(); +try{self.$aW()}catch(_a){if(_a instanceof a$c)throw(_a); +if((_c=$Y.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a; self.$t(nil,_b)}else{throw(_a)}}; -_d=self.$t(nil,self.$a5()); +_d=self.$t(nil,self.$a2()); return _d} ,$x: /* T_TestYield::TestYield#loop */ function(_a){var self,_b; @@ -2643,134 +2267,564 @@ self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; while(true){_a()}; _b=self.$t(nil,"not reached"); -return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==81))return _c.a$a; +return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==80))return _c.a$a; throw(_c)}} -,$aY: +,$aV: /* T_TestYield::TestYield#three_times_indirect */ function(_a){var self,_b,_c; _c=nil; self=this; _b=_a==null?nil:_a; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -self.$a6(_b); -_c=self.$aS(_b); -return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==80))return _d.a$a; +self.$a3(_b); +_c=self.$aP(_b); +return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==79))return _d.a$a; throw(_d)}} -,$a6: +,$a3: /* T_TestYield::TestYield#three_times_yield */ function(_a){var self,_b; _b=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; _a(1); _a(2); _b=_a(3); -return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==79))return _c.a$a; +return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==78))return _c.a$a; throw(_c)}} -,$a1: +,$aY: /* T_TestYield::TestYield#three_times_yield2 */ function(_a){var self,_b; _b=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$t(nil,_a(1)); self.$t(nil,_a(2)); _b=self.$t(nil,_a(3)); -return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==82))return _c.a$a; +return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==81))return _c.a$a; throw(_c)}} -,$a5: +,$a2: /* T_TestYield::TestYield#test_return_in_block */ function(){var self,_b; _b=nil; self=this; try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$t(nil,"before"); -self.$aW(function(){; -throw(new a$c(4,83))}); +self.$aT(function(){; +throw(new a$c(4,82))}); _b=self.$t(nil,"after (NOT)"); -return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==83))return _c.a$a; +return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==82))return _c.a$a; throw(_c)}} -,$a4: +,$a1: /* T_TestYield::TestYield#test_three_times_yield */ function(){var self,_d; _d=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$u(nil,"three_times_yield"); -self.$a6(function(_a){var _b; +self.$a3(function(_a){var _b; var _c=nil; _b=_a==null?nil:_a; _c=self.$t(nil,_b); return _c}); _d=self.$u(nil,"--"); return _d} -}});$N = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestExpr::TestExpr.main */ +}});$an = a$d({a$j: [],a$e: $k,a$c: "Boolean",a$d: Boolean,a$h: {$8: +/* Boolean#== */ +function(_b,_a){var self; +self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; +return (self == _a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==83))return _c.a$a; +throw(_c)}} + +,$o: +/* Boolean#to_s */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +return (self == true ? 'true' : 'false')} + +,$i: +/* Boolean#inspect */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +return (self == true ? 'true' : 'false')} + +}});$ac = a$d({a$j: [],a$e: $l,a$c: "NameError"});$g = a$d({a$j: [],a$e: $ac,a$c: "NoMethodError"});$P = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestRange::TestRange.main */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); +_a=self.$a().$G(); return _a} -},a$c: "T_TestExpr::TestExpr",a$h: {$K: -/* T_TestExpr::TestExpr#test */ +},a$c: "T_TestRange::TestRange",a$h: {$G: +/* T_TestRange::TestRange#test */ +function(){var _j,self,_a,_b,_i,_n; +_n=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_a=$v.$a(nil,0,2); +self.$t(nil,_a.$4()); +self.$t(nil,_a.$aD()); +self.$t(nil,_a); +_b=1; +self.$t(nil,$v.$a(nil,_b,_b.$R(nil,5),false).$o()); +self.$t(nil,$v.$a(nil,_b,_b.$R(nil,_b),true).$o()); +self.$t(nil,$v.$a(nil,0,2,false).$o()); +self.$t(nil,$v.$a(nil,0,2,true).$o()); +$v.$a(nil,0,4,false).$v(function(_c){var _d=nil; +_b=_c==null?nil:_c; +_d=self.$t(nil,_b); +return _d}); +$v.$a(nil,0,4,true).$v(function(_e){var _f=nil; +_b=_e==null?nil:_e; +_f=self.$t(nil,_b); +return _f}); +$v.$a(nil,-1,-4,false).$v(function(_g){var _h=nil; +_b=_g==null?nil:_g; +_h=self.$t(nil,_b); +return _h}); +self.$t(nil,$v.$a(nil,0,4,false).$aH(nil,4)); +self.$t(nil,$v.$a(nil,0,4,false).$aH(nil,5)); +self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,5)); +self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,4)); +self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,3)); +self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,0)); +self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,-1)); +self.$t(nil,$v.$a(nil,-1,-5,false).$N()); +self.$t(nil,$v.$a(nil,-5,-1,false).$N()); +_i=$v.$a(nil,0,4); +self.$t(nil,_i.$4()); +self.$t(nil,_i.$aG()); +self.$t(nil,_i.$aD()); +self.$t(nil,_i.$aI()); +self.$t(nil,_i.$aF()); +_i=$v.$a(nil,1,5,true); +self.$t(nil,_i.$4()); +self.$t(nil,_i.$aG()); +self.$t(nil,_i.$aD()); +self.$t(nil,_i.$aI()); +self.$t(nil,_i.$aF()); +self.$t(nil,false.$8(nil,false)); +self.$t(nil,false.$8(nil,true)); +self.$t(nil,true.$8(nil,false)); +self.$t(nil,true.$8(nil,true)); +self.$t(nil,$v.$a(nil,0,2,false).$8(nil,$v.$a(nil,0,2,false))); +self.$t(nil,$v.$a(nil,0,2,false).$8(nil,$v.$a(nil,0,2))); +self.$t(nil,$v.$a(nil,0,2,false).$8(nil,$v.$a(nil,0,2,true))); +_j=55; +self.$t(nil,_j); +$v.$a(nil,1,100,false).$v(function(_k){var _l=nil; +_b=_k==null?nil:_k; +_l=_j=_b; +return _l}); +self.$t(nil,_j); +_j=54; +self.$t(nil,_j); +$v.$a(nil,1,100,false).$v(function(_m){_j=_m==null?nil:_m; +}); +_n=self.$t(nil,_j); +return _n} + +}});$ao = a$d({a$j: [],a$e: nil,a$c: "T_TestInsertionSort"});$N = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestEql::TestEql.main */ +function(){var self,_a; +_a=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +self.$t(nil,"a".$g(nil,"a")); +self.$t(nil,"a".$g(nil,1)); +self.$t(nil,"1".$g(nil,1)); +self.$t(nil,[1,2].$g(nil,[1,2])); +_a=self.$t(nil,(1).$g(nil,"1")); +return _a} + +},a$c: "T_TestEql::TestEql"});$J = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestString::TestString.main */ +function(){var self,_a; +_a=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_a=self.$a().$G(); +return _a} + +},a$c: "T_TestString::TestString",a$h: {$G: +/* T_TestString::TestString#test */ +function(){var self,_a,_i; +_i=nil; +self=this; +if(self.$a4==null)self.$a4=nil; +if(self.$an==null)self.$an=nil; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +self.$t(nil,"hello"); +self.$t(nil,"hallo\b\t\n"); +self.$t(nil,"hallo\\leute"); +self.$t(nil,"\"super\""); +self.$t(nil,"hello".$2(nil,"e")); +self.$t(nil,"hello".$2(nil,"lo")); +self.$t(nil,"hello".$2(nil,"a")); +self.$t(nil,"hello hello".$2(nil,"ll")); +self.$t(nil,"hello hello".$2(nil,"ll",3)); +self.$t(nil,"hallo".$X(nil,0,1)); +self.$t(nil,"hallo".$X(nil,0,2)); +self.$t(nil,"hallo".$X(nil,0,5)); +self.$t(nil,"10".$T(nil,10,"0")); +self.$t(nil,"10".$T(nil,1,"blah")); +self.$t(nil,"x".$T(nil,4,"()")); +self.$t(nil,"10".$Y(nil,10,"0")); +self.$t(nil,"10".$Y(nil,1,"blah")); +self.$t(nil,"x".$Y(nil,4,"()")); +self.$t(nil,("abc " + ((1).$R(nil,2)).$o() + (" def").$o())); +self.$an="hallo".$i(); +self.$a4=4.5; +self.$t(nil,("" + (self.$an).$o() + (",").$o() + (self.$a4).$o())); +_a="hallo".$3(nil,"l","r"); +self.$t(nil,_a); +_a="hallo".$3(nil,/ll/,"rr"); +self.$t(nil,_a); +_a="hallo".$3(function(){var _c=nil; +; +_c="r"; +return _c},/l/); +self.$t(nil,_a); +_a="hallo".$3(function(){var _e=nil; +; +_e="blah blah"; +return _e},/ll/); +self.$t(nil,_a); +_i="hallllllo".$3(function(_f){var _g; +var _h=nil; +_g=_f==null?nil:_f; +_h=self.$t(nil,_g); +return _h},/(l)l/); +return _i} + +}});$ad = a$d({a$j: [$r],a$e: $k,a$f: {$aK: +/* Hash.new_from_key_value_list */ function(){var self,_a,_b,_c; +self=this; +_a=[]; +for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); +; +if((_b=_a.$V().$$(nil,2).$8(nil,0),_b===false||_b===nil)){self.$j(nil,$a)}; +_c=self.$b(); + + // + // we use an associate array to store the items. But unlike + // Javascript, the entries are arrays which contain the collisions. + // NOTE that we have to prefix the hash code with a prefix so that + // there are no collisions with methods etc. + // I prefix it for now with ":". + // + var items = {}; + var hashed_key, current_key, current_val; + + for (var i = 0; i < _a.length; i += 2) + { + current_key = _a[i]; + current_val = _a[i+1]; + hashed_key = ":" + current_key.$B(); + + // make sure that a bucket exists + if (!items[hashed_key]) items[hashed_key] = []; + + items[hashed_key].push(current_key, current_val); + } + + _c.a$k = items; + _c.a$l = nil; + return _c; + } + +,$a8: +/* Hash.new_from_jsobject */ +function(_d,_a){var self,_b,_c; _c=nil; self=this; -try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); ; -_a=(true?1:2); -self.$t(nil,_a); -(_b=_a=true, (_b!==false&&_b!==nil) ? _b : (a$m(new a$c(nil,null)))); -_c=self.$t(nil,_a); -return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==84))return _d.a$a; +_c=_b=self.$a(); +return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==87))return _e.a$a; +throw(_e)}} + +},a$c: "Hash",a$h: {$X: +/* Hash#[] */ +function(_b,_a){var self; +self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; + + if (!self.a$k) + { + // this is a Javascript Object, not a RubyJS Hash object. + // we directly look the key up. it's fast but not Ruby-like, + // so be careful! + + var elem = self[_a]; + return (elem == null ? nil : elem); + } + + var hashed_key = ":" + _a.$B(); + var bucket = self.a$k[hashed_key]; + + if (bucket) + { + // + // find the matching element inside the bucket + // + + for (var i = 0; i < bucket.length; i += 2) + { + if (bucket[i].$g(nil,_a)) + return bucket[i+1]; + } + } + + // no matching key found -> return default value + return self.a$l; + }catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==84))return _c.a$a; +throw(_c)}} + +,$a5: +/* Hash#keys */ +function(){var self,_b,_f; +_b=_f=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_f=self.$M(function(_a){var _c,_d; +var _e=nil; +(_b=a$l(_a),_c=_b[0]==null?nil:_b[0],_d=_b[1]==null?nil:_b[1],_b); +_e=_c; +return _e}); +return _f} + +,$o: +/* Hash#to_s */ +function(){var self,_a,_c,_g; +_c=_g=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_a=[]; +self.$v(function(_b){var _d,_e; +var _f=nil; +(_c=a$l(_b),_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_c); +_a.$J(nil,_d); +_f=_a.$J(nil,_e); +return _f}); +_g=_a.$a6(nil,""); +return _g} + +,$al: +/* Hash#[]= */ +function(_c,_a,_b){var self; +self=this; +try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +; + + if (!self.a$k) + { + // this is a Javascript Object, not a RubyJS Hash object. + // we directly look the key up. it's fast but not Ruby-like, + // so be careful! + + self[_a] = _b; + return _b; + } + + var hashed_key = ":" + _a.$B(); + var bucket = self.a$k[hashed_key]; + + if (bucket) + { + // + // find the matching element inside the bucket + // + + for (var i = 0; i < bucket.length; i += 2) + { + if (bucket[i].$g(nil,_a)) + { + // overwrite value + bucket[i+1] = _b; + return _b; + } + } + // key not found in this bucket. append key, value pair to bucket + bucket.push(_a, _b); + } + else + { + // + // create new bucket + // + self.a$k[hashed_key] = [_a, _b]; + } + return _b; + }catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==86))return _d.a$a; throw(_d)}} -}});$af = a$d({a$j: [],a$e: nil,a$c: "T_TestHash"});$S = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestInspect::TestInspect.main */ +,$v: +/* Hash#each */ +function(_a){var self; +self=this; +try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; + + if (!self.a$k) + { + // this is a Javascript Object, not a RubyJS Hash object. + // we directly look the key up. it's fast but not Ruby-like, + // so be careful! + var key, value; + for (key in self) + { + value = self[key];; +_a([(key == null ? nil : key),(value == null ? nil : value)]); + + } + + return nil; + } + + var key, bucket, i; + for (key in self.a$k) + { + if (key.charAt(0) == ":") + { + bucket = self.a$k[key]; + for (i=0; i<bucket.length; i+=2) + {; +_a([bucket[i],bucket[i+1]]); + + } + } + } + return nil; + }catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==85))return _b.a$a; +throw(_b)}} + +,$c: +/* Hash#initialize */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; + + self.a$k = {}; + self.a$l = nil; + return nil} + +,$a7: +/* Hash#values */ +function(){var self,_b,_f; +_b=_f=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_f=self.$M(function(_a){var _c,_d; +var _e=nil; +(_b=a$l(_a),_c=_b[0]==null?nil:_b[0],_d=_b[1]==null?nil:_b[1],_b); +_e=_d; +return _e}); +return _f} + +,$i: +/* Hash#inspect */ +function(){var self,_a,_c,_g; +_c=_g=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_a="{"; +_a=_a.$R(nil,self.$M(function(_b){var _d,_e; +var _f=nil; +(_c=a$l(_b),_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_c); +_f=_d.$i().$R(nil,"=>").$R(nil,_e.$i()); +return _f}).$a6(nil,", ")); +_a=_a.$R(nil,"}"); +_g=_a; +return _g} + +}});$ap = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Bar_"});$aq = a$d({a$j: [],a$e: nil,a$c: "T_TestMassign"});$ar = a$d({a$j: [],a$e: $p,a$c: "T_TestHotRuby::Bar2",a$h: {$aM: +/* T_TestHotRuby::Bar2#run */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); +_a=self.$u(nil,"Foo"); return _a} -},a$c: "T_TestInspect::TestInspect",a$h: {$K: -/* T_TestInspect::TestInspect#test */ -function(){var self,_a,_b; -_b=nil; +}});$ag = a$d({a$j: [],a$e: $aa,a$c: "T_TestClass::C"});$as = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Foo3"});$at = a$d({a$j: [],a$e: $as,a$c: "T_TestHotRuby::Bar3",a$h: {$aM: +/* T_TestHotRuby::Bar3#run */ +function(){var self,_a; +_a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=[$y.$Z(nil,"Hello","Rubyconf")]; -_b=self.$u(nil,_a.$i()); -return _b} +self.$u(nil,"Foo"); +self.$u(nil,"Foo"); +_a=self.$u(nil,"Foo"); +return _a} -}});$d = a$d({a$j: [],a$e: $n,a$c: "TypeError"});$Y = a$d({a$j: [],a$e: $k,a$f: {$G: +}});$au = a$d({a$j: [],a$e: nil,a$c: "T_TestSend"});$av = a$d({a$j: [],a$e: nil,a$c: "T_TestInspect"});$D = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestExpr::TestExpr.main */ +function(){var self,_a; +_a=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_a=self.$a().$G(); +return _a} + +},a$c: "T_TestExpr::TestExpr",a$h: {$G: +/* T_TestExpr::TestExpr#test */ +function(){var self,_a,_b,_c; +_c=nil; +self=this; +try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_a=(true?1:2); +self.$t(nil,_a); +(_b=_a=true, (_b!==false&&_b!==nil) ? _b : (a$m(new a$c(nil,null)))); +_c=self.$t(nil,_a); +return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==88))return _d.a$a; +throw(_d)}} + +}});$Q = a$d({a$j: [],a$e: $k,a$f: {$F: /* T_TestMassign::TestMassign.main */ function(){var self,_a,_b,_c,_d,_e,_f; _a=_f=nil; self=this; -if(self.$aH==null)self.$aH=nil; -if(self.$a7==null)self.$a7=nil; +if(self.$a9==null)self.$a9=nil; +if(self.$an==null)self.$an=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; (_a=[1,2],_b=_a[0]==null?nil:_a[0],_c=_a[1]==null?nil:_a[1],_a); self.$t(nil,_b); self.$t(nil,_c); @@ -2783,14 +2837,14 @@ (_a=[1,2],_b=_a[0]==null?nil:_a[0],_c=_a[1]==null?nil:_a[1],_d=_a[2]==null?nil:_a[2],_a); self.$t(nil,_b); self.$t(nil,_c); self.$t(nil,_d); self.$u(nil,"--"); -(_a=[1,2,3],self.$aH=_a[0]==null?nil:_a[0],_c=_a[1]==null?nil:_a[1],self.$a7=_a[2]==null?nil:_a[2],_a); -self.$t(nil,self.$aH); +(_a=[1,2,3],self.$an=_a[0]==null?nil:_a[0],_c=_a[1]==null?nil:_a[1],self.$a9=_a[2]==null?nil:_a[2],_a); +self.$t(nil,self.$an); self.$t(nil,_c); -self.$t(nil,self.$a7); +self.$t(nil,self.$a9); self.$u(nil,"--"); self.$u(nil,"swap"); (_a=[1,2],_b=_a[0]==null?nil:_a[0],_c=_a[1]==null?nil:_a[1],_a); self.$t(nil,_b); self.$t(nil,_c); @@ -2814,389 +2868,538 @@ (_a=[1,2,3,4,5],_b=_a[0]==null?nil:_a[0],_c=_a.slice(1),_a); self.$t(nil,_b); self.$t(nil,_c); self.$u(nil,"--"); self.$u(nil,"splat with globals"); -self.$t(nil,(typeof($ag)=='undefined'?nil:$ag)); -self.$t(nil,(typeof($ah)=='undefined'?nil:$ah)); -(_a=[1,2],$ag=_a[0]==null?nil:_a[0],$ah=_a[1]==null?nil:_a[1],_a); -self.$t(nil,(typeof($ag)=='undefined'?nil:$ag)); -self.$t(nil,(typeof($ah)=='undefined'?nil:$ah)); +self.$t(nil,(typeof($aw)=='undefined'?nil:$aw)); +self.$t(nil,(typeof($ax)=='undefined'?nil:$ax)); +(_a=[1,2],$aw=_a[0]==null?nil:_a[0],$ax=_a[1]==null?nil:_a[1],_a); +self.$t(nil,(typeof($aw)=='undefined'?nil:$aw)); +self.$t(nil,(typeof($ax)=='undefined'?nil:$ax)); _f=self.$u(nil,"--"); return _f} -},a$c: "T_TestMassign::TestMassign"});$ai = a$d({a$j: [],a$e: nil,a$c: "T_TestLebewesen"});$aj = a$d({a$j: [],a$e: $k,a$c: "MatchData",a$h: {$c: -/* MatchData#initialize */ -function(_c,_a){var self,_b; -_b=nil; +},a$c: "T_TestMassign::TestMassign"});$ay = a$d({a$j: [],a$e: nil,a$c: "T_TestSimpleOutput"});$K = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestInspect::TestInspect.main */ +function(){var self,_a; +_a=nil; self=this; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_b=self.$a8=_a; -return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==85))return _d.a$a; -throw(_d)}} +_a=self.$a().$G(); +return _a} -}});$ak = a$d({a$j: [],a$e: nil,a$c: "T_TestSimpleOutput"});$j = a$d({a$j: [],a$e: $k,a$c: "Method",a$h: {$c: -/* Method#initialize */ -function(_f,_a,_b){var self,_c,_d,_e; -_e=nil; +},a$c: "T_TestInspect::TestInspect",a$h: {$G: +/* T_TestInspect::TestInspect#test */ +function(){var self,_a,_b; +_b=nil; self=this; -try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -(_c=[_a,_b],self.$a9=_c[0]==null?nil:_c[0],self.$a_=_c[1]==null?nil:_c[1],_c); -_d=nil; -_d = _a[a$f[_b]]; - if (_d==null) _d = nil;; -if((_c=_d,_c!==false&&_c!==nil)){_e=self.$a$=_d}else{_e=self.$j(nil,$o,("undefined method `" + (_b).$o() + ("' for class `").$o() + (_a.$z().$e()).$o() + ("'").$o()))}; -return _e}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==86))return _g.a$a; -throw(_g)}} +_a=[$ad.$aK(nil,"Hello","Rubyconf")]; +_b=self.$u(nil,_a.$i()); +return _b} -,$O: -/* Method#call */ -function(_c){var self,_a,_b,_d; +}});$ai = a$d({a$j: [],a$e: $k,a$c: "NilClass",a$d: NilClass,a$h: {$a_: +/* NilClass#to_f */ +function(){var self,_a; +_a=nil; self=this; -_d=_c==null?nil:_c; -try{_a=[]; -for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -return self.$a$.apply(self.$a9, [_d].concat(_a))}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==87))return _e.a$a; -throw(_e)}} +_a=0.0; +return _a} -,$i: -/* Method#inspect */ +,$q: +/* NilClass#nil? */ function(){var self,_a; _a=nil; self=this; -if(self.$a_==null)self.$a_=nil; -if(self.$a9==null)self.$a9=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=("#<Method: " + (self.$a9.$z().$e()).$o() + ("#").$o() + (self.$a_).$o() + (">").$o()); +_a=true; return _a} -}});$v = a$d({a$j: [],a$e: $k,a$c: "Range",a$h: {$D: -/* Range#== */ -function(_e,_a){var self,_b,_c,_d; -_d=nil; +,$o: +/* NilClass#to_s */ +function(){var self,_a; +_a=nil; self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -if (self.constructor != _a.constructor) return false;; -_d=(_b=self.$ba.$D(nil,_a.$aw()), (_b!==false&&_b!==nil) ? ((_c=self.$bb.$D(nil,_a.$av()), (_c!==false&&_c!==nil) ? (self.$bc.$D(nil,_a.$aN())) : _c)) : _b); -return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==88))return _f.a$a; -throw(_f)}} +_a=""; +return _a} -,$aL: -/* Range#begin */ +,$a$: +/* NilClass#to_i */ function(){var self,_a; _a=nil; self=this; -if(self.$ba==null)self.$ba=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$ba; +_a=0; return _a} -,$g: -/* Range#eql? */ -function(_e,_a){var self,_b,_c,_d; -_d=nil; -self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -; -if (self.constructor != _a.constructor) return false;; -_d=(_b=self.$ba.$g(nil,_a.$aw()), (_b!==false&&_b!==nil) ? ((_c=self.$bb.$g(nil,_a.$av()), (_c!==false&&_c!==nil) ? (self.$bc.$D(nil,_a.$aN())) : _c)) : _b); -return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==89))return _f.a$a; -throw(_f)}} - -,$aN: -/* Range#exclude_end? */ +,$N: +/* NilClass#to_a */ function(){var self,_a; _a=nil; self=this; -if(self.$bc==null)self.$bc=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$bc; +_a=[]; return _a} -,$av: -/* Range#last */ +,$ba: +/* NilClass#to_splat */ function(){var self,_a; _a=nil; self=this; -if(self.$bb==null)self.$bb=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$bb; +_a=[]; return _a} -,$o: -/* Range#to_s */ -function(){var self,_b,_a; +,$i: +/* NilClass#inspect */ +function(){var self,_a; _a=nil; self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -if((_b=self.$bc,_b!==false&&_b!==nil)){_a=("" + (self.$ba).$o() + ("...").$o() + (self.$bb).$o())}else{_a=("" + (self.$ba).$o() + ("..").$o() + (self.$bb).$o())}; +_a="nil"; return _a} -,$v: -/* Range#each */ -function(_c){var self,_a,_b,_d; -_d=nil; -self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; -try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); -; -_a=self.$ba; -if((_b=self.$ba.$ao(nil,self.$bb),_b!==false&&_b!==nil)){return nil}; -if((_b=self.$bc,_b!==false&&_b!==nil)){while((_b=_a.$5(nil,self.$bb),_b!==false&&_b!==nil)){_c(_a); -_a=_a.$ah()}; -_d=nil; -}else{while((_b=_a.$ad(nil,self.$bb),_b!==false&&_b!==nil)){_c(_a); -_a=_a.$ah()}; -_d=nil; -}; -return _d}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==92))return _e.a$a; -throw(_e)}} - -,$aM: -/* Range#end */ +}});$az = a$d({a$j: [],a$e: $k,a$c: "Regexp",a$d: RegExp});$aA = a$d({a$j: [],a$e: nil,a$c: "T_TestHotRuby"});$aB = a$d({a$j: [],a$e: $p,a$c: "T_TestHotRuby::Object::Bar2",a$h: {$aM: +/* T_TestHotRuby::Object::Bar2#run */ function(){var self,_a; _a=nil; self=this; -if(self.$bb==null)self.$bb=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$bb; +_a=self.$u(nil,"Foo"); return _a} -,$aw: -/* Range#first */ +}});$R = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestNew::TestNew.main */ function(){var self,_a; _a=nil; self=this; -if(self.$ba==null)self.$ba=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$ba; +_a=self.$a().$G(); return _a} -,$aK: -/* Range#include? */ -function(_d,_a){var self,_b,_c; -_c=nil; +},a$c: "T_TestNew::TestNew",a$h: {$c: +/* T_TestNew::TestNew#initialize */ +function(){var self,_a; +_a=nil; self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -; -if((_b=_a.$5(nil,self.$ba),_b!==false&&_b!==nil)){return false}; -if((_b=self.$bc,_b!==false&&_b!==nil)){_c=_a.$5(nil,self.$bb)}else{_c=_a.$ad(nil,self.$bb)}; -return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==91))return _e.a$a; -throw(_e)}} - -,$c: -/* Range#initialize */ -function(_f,_a,_b,_c){var self,_d,_e; -_e=nil; -self=this; -try{if(arguments.length<3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); -if(arguments.length>4)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 3)')); -if(_c==null)_c=false; -; -(_d=[_a,_b],self.$ba=_d[0]==null?nil:_d[0],self.$bb=_d[1]==null?nil:_d[1],_d); -_e=self.$bc=((_d=_c,_d!==false&&_d!==nil)?true:false); -return _e}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==90))return _g.a$a; -throw(_g)}} - -,$f: -/* Range#=== */ -function(_d,_a){var self,_b,_c; -_c=nil; -self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -; -if((_b=_a.$5(nil,self.$ba),_b!==false&&_b!==nil)){return false}; -if((_b=self.$bc,_b!==false&&_b!==nil)){_c=_a.$5(nil,self.$bb)}else{_c=_a.$ad(nil,self.$bb)}; -return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==93))return _e.a$a; -throw(_e)}} - -,$R: -/* Range#to_a */ -function(){var self,_a,_b,_c; -self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=[]; -if((_b=self.$ba.$ao(nil,self.$bb),_b!==false&&_b!==nil)){return _a}; -_c=self.$ba; -if((_b=self.$bc,_b!==false&&_b!==nil)){while((_b=_c.$5(nil,self.$bb),_b!==false&&_b!==nil)){_a.$N(nil,_c); -_c=_c.$ah()}}else{while((_b=_c.$ad(nil,self.$bb),_b!==false&&_b!==nil)){_a.$N(nil,_c); -_c=_c.$ah()}}; +_a=nil; return _a} -,$i: -/* Range#inspect */ -function(){var self,_b,_a; +,$G: +/* T_TestNew::TestNew#test */ +function(){var self,_a; _a=nil; self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -if((_b=self.$bc,_b!==false&&_b!==nil)){_a=("" + (self.$ba.$i()).$o() + ("...").$o() + (self.$bb.$i()).$o())}else{_a=("" + (self.$ba.$i()).$o() + ("..").$o() + (self.$bb.$i()).$o())}; +_a=self.$u(nil,"test"); return _a} -,$bd: -/* Range#member? */ -function(_d,_a){var self,_b,_c; -_c=nil; -self=this; -if(self.$ba==null)self.$ba=nil; -if(self.$bb==null)self.$bb=nil; -if(self.$bc==null)self.$bc=nil; -try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); -; -if((_b=_a.$5(nil,self.$ba),_b!==false&&_b!==nil)){return false}; -if((_b=self.$bc,_b!==false&&_b!==nil)){_c=_a.$5(nil,self.$bb)}else{_c=_a.$ad(nil,self.$bb)}; -return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==94))return _e.a$a; -throw(_e)}} - -}});$al = a$d({a$j: [],a$e: nil,a$c: "T_TestRegexp"});$am = a$d({a$j: [],a$e: nil,a$c: "T_TestNew"});$an = a$d({a$j: [],a$e: nil,a$c: "T_TestRange"});$W = a$d({a$j: [],a$e: $k,a$f: {$G: +}});$aC = a$d({a$j: [],a$e: nil,a$c: "T_TestRegexp"});$O = a$d({a$j: [],a$e: $k,a$f: {$F: /* T_TestSend::TestSend.main */ function(){var self,_b,_c,_d,_e; _e=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; self.$u(nil,"send"); -self.$t(nil,$1.$a().$w(nil,"a_method",1,2)); -self.$t(nil,$2.$a().$w(nil,"a_method",1,2)); +self.$t(nil,$7.$a().$w(nil,"a_method",1,2)); +self.$t(nil,$8.$a().$w(nil,"a_method",1,2)); self.$u(nil,"respond_to?"); -self.$t(nil,$1.$a().$r(nil,"a_method")); -self.$t(nil,$1.$a().$r(nil,"to_s")); -self.$t(nil,$1.$a().$r(nil,"inspect")); -self.$t(nil,$1.$a().$r(nil,"b_method")); -self.$t(nil,$1.$a().$r(nil,"c_method")); +self.$t(nil,$7.$a().$r(nil,"a_method")); +self.$t(nil,$7.$a().$r(nil,"to_s")); +self.$t(nil,$7.$a().$r(nil,"inspect")); +self.$t(nil,$7.$a().$r(nil,"b_method")); +self.$t(nil,$7.$a().$r(nil,"c_method")); self.$u(nil,"method_missing"); -self.$t(nil,$m.$a().$r(nil,"blah_blah")); -$m.$a().$be(nil,1,2,3); -try{$1.$a().$be(); +self.$t(nil,$X.$a().$r(nil,"blah_blah")); +$X.$a().$bb(nil,1,2,3); +try{$7.$a().$bb(); self.$u(nil,"FAILURE?")}catch(_a){if(_a instanceof a$c)throw(_a); if((_b=$g.$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"catched!!!")}else{throw(_a)}}; -try{$1.$bf()}catch(_a){if(_a instanceof a$c)throw(_a); +try{$7.$bc()}catch(_a){if(_a instanceof a$c)throw(_a); if((_b=$g.$f(nil,_a),_b!==false&&_b!==nil)){self.$t(nil,"goood")}else{throw(_a)}}; self.$u(nil,"class Method"); _c="hallo".$C(nil,"to_s"); self.$t(nil,_c); -self.$t(nil,_c.$O()); +self.$t(nil,_c.$K()); _d=[1,2,3]; _c=_d.$C(nil,"+"); self.$t(nil,_c); -self.$t(nil,_c.$O(nil,[2,3])); +self.$t(nil,_c.$K(nil,[2,3])); self.$t(nil,_c); _e=self.$t(nil,_d); return _e} -},a$c: "T_TestSend::TestSend"});$a = a$d({a$j: [],a$e: $n,a$c: "ArgumentError"});$O = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestSimpleOutput::TestSimpleOutput.main */ +},a$c: "T_TestSend::TestSend"});$B = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestInsertionSort::TestInsertionSort.main */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$u(nil,"Hello World from RubyJS"); +_a=self.$a().$ak(nil,[3,6,2,5,3,7,1,8]); return _a} -},a$c: "T_TestSimpleOutput::TestSimpleOutput"});a$d({a$j: [],a$g: $b});$c = a$d({a$j: [],a$e: $n,a$c: "RuntimeError"});$T = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestRegexp::TestRegexp.main */ -function(){var self,_a; -_a=nil; +},a$c: "T_TestInsertionSort::TestInsertionSort",a$h: {$ak: +/* T_TestInsertionSort::TestInsertionSort#sort */ +function(_j,_a){var self,_c,_d,_e,_f,_g,_i; +_i=nil; self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; +self.$u(nil,"Before insertion sort:"); +self.$t(nil,_a); +$v.$a(nil,1,_a.$V().$U(nil,1),false).$v(function(_b){var _h=nil; +_c=_b==null?nil:_b; +_d=_c; +while((_e=(_f=_d.$7(nil,1), (_f!==false&&_f!==nil) ? (_a.$X(nil,_d).$Z(nil,_a.$X(nil,_d.$U(nil,1)))) : _f),_e!==false&&_e!==nil)){if((_e=_a.$X(nil,_d).$Z(nil,_a.$X(nil,_d.$U(nil,1))),_e!==false&&_e!==nil)){_g=_a.$X(nil,_d); +_a.$al(nil,_d,_a.$X(nil,_d.$U(nil,1))); +_a.$al(nil,_d.$U(nil,1),_g)}; +_d=_d.$U(nil,1)}; +_h=nil; +; +return _h}); +self.$u(nil,"After insertion sort:"); +_i=self.$t(nil,_a); +return _i}catch(_k){if(_k instanceof a$c && (!_k.a$b || _k.a$b==89))return _k.a$a; +throw(_k)}} + +}});$aD = a$d({a$j: [],a$e: nil,a$c: "T_TestException"});$aE = a$d({a$j: [],a$e: nil,a$c: "T_TestRange"});$1 = a$d({a$j: [$r],a$e: $k,a$f: {$a: +/* Array.new */ +function(){var self; +self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); -return _a} +return []} -},a$c: "T_TestRegexp::TestRegexp",a$h: {$K: -/* T_TestRegexp::TestRegexp#test */ -function(){var self,_a,_b,_c; -_c=nil; +},a$c: "Array",a$d: Array,a$h: {$R: +/* Array#+ */ +function(_b,_a){var self; self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; +return self.concat(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==92))return _c.a$a; +throw(_c)}} + +,$J: +/* Array#<< */ +function(_b,_a){var self; +self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; +self.push(_a); return self}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==91))return _c.a$a; +throw(_c)}} + +,$aN: +/* Array#delete */ +function(_b,_a){var self; +self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; + + var del = false; + for (var i=0; i < self.length; i++) + { + if (_a.$g(nil, self[i])) + { + self.splice(i,1); + del = true; + // stay at the current index unless we are at the last element! + if (i < self.length-1) --i; + } + } + return del ? _a : nil}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==90))return _c.a$a; +throw(_c)}} + +,$S: +/* Array#size */ +function(){var self; +self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -if((_a="hallo".$aP(nil,/ll/),_a!==false&&_a!==nil)){self.$t(nil,"okay")}; -_b="hallo".$aP(nil,/ll/); -self.$t(nil,_b); -"hallo".$aP(nil,/(ll)/); -self.$t(nil,(RegExp.$1 || nil)); -self.$t(nil,(RegExp.$2 || nil)); -self.$t(nil,(RegExp.$3 || nil)); -"hallo".$aP(nil,/a(ll)(o)/); -self.$t(nil,(RegExp.$1 || nil)); -self.$t(nil,(RegExp.$2 || nil)); -self.$t(nil,(RegExp.$3 || nil)); -_c=self.$t(nil,(RegExp.$4 || nil)); -return _c} +return self.length} -}});$ao = a$d({a$j: [],a$e: nil,a$c: "T_TestIf"});$u = a$d({a$j: [],a$e: $9,a$c: "Fixnum",a$d: Number});$ap = a$d({a$j: [],a$e: nil,a$c: "T_TestArgs"});$Z = a$d({a$j: [],a$e: $k,a$f: {$G: -/* T_TestNew::TestNew.main */ +,$X: +/* Array#[] */ +function(_b,_a){var self; +self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; +var v = self[_a]; return (v == null ? nil : v)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==94))return _c.a$a; +throw(_c)}} + +,$be: +/* Array#clear */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +self.length=0; return self} + +,$g: +/* Array#eql? */ +function(_b,_a){var self; +self=this; +try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +; + + if (!(_a instanceof Array)) return false; + if (self.length != _a.length) return false; + + // + // compare element-wise + // + for (var i = 0; i < self.length; i++) + { + if (! self[i].$g(nil, _a[i])) + { + // + // at least for one element #eql? holds not true + // + return false; + } + } + + return true; + }catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==93))return _c.a$a; +throw(_c)}} + +,$bd: +/* Array#reverse */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +return self.concat().reverse()} + +,$aD: +/* Array#last */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +var v = self[self.length - 1]; return (v == null ? nil : v)} + +,$o: +/* Array#to_s */ +function(){var self,_d; +_d=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_d=self.$M(function(_a){var _b; +var _c=nil; +_b=_a==null?nil:_a; +_c=_b.$o(); +return _c}).$a6(); +return _d} + +,$al: +/* Array#[]= */ +function(_c,_a,_b){var self; +self=this; +try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)')); +; +return (self[_a] = _b)}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==97))return _d.a$a; +throw(_d)}} + +,$v: +/* Array#each */ +function(_a){var self; +self=this; +try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; + + var elem; + for (var i=0; i < self.length; i++) { + elem = self[i];; +_a((elem == null ? nil : elem)); +} + return self}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==96))return _b.a$a; +throw(_b)}} + +,$bf: +/* Array#each_with_index */ +function(_a){var self; +self=this; +try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; + + var elem; + for (var i=0; i < self.length; i++) { + elem = self[i];; +_a([(elem == null ? nil : elem),i]); +} + return self}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==95))return _b.a$a; +throw(_b)}} + +,$4: +/* Array#first */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +var v = self[0]; return (v == null ? nil : v)} + +,$V: +/* Array#length */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +return self.length} + +,$bg: +/* Array#pop */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; + + var elem = self.pop(); + return (elem == null ? nil : elem)} + +,$k: +/* Array#shift */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; + + var elem = self.shift(); + return (elem == null ? nil : elem)} + +,$l: +/* Array#empty? */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +return (self.length == 0)} + +,$N: +/* Array#to_a */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$a().$K(); +_a=self; return _a} -},a$c: "T_TestNew::TestNew",a$h: {$c: -/* T_TestNew::TestNew#initialize */ +,$bi: +/* Array#push */ +function(){var self,_a,_b; +self=this; +_a=[]; +for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); +; +self.push.apply(self, _a); return self} + +,$bh: +/* Array#to_ary */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=nil; +_a=self; return _a} -,$K: -/* T_TestNew::TestNew#test */ +,$bl: +/* Array#dup */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +return self.concat()} + +,$i: +/* Array#inspect */ +function(){var self,_a,_e; +_e=nil; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +_a="["; +_a=_a.$R(nil,self.$M(function(_b){var _c; +var _d=nil; +_c=_b==null?nil:_b; +_d=_c.$i(); +return _d}).$a6(nil,", ")); +_a=_a.$R(nil,"]"); +_e=_a; +return _e} + +,$bk: +/* Array#reverse! */ +function(){var self; +self=this; +if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); +; +self.reverse(); return self} + +,$bj: +/* Array#unshift */ +function(){var self,_a,_b; +self=this; +_a=[]; +for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]); +; +self.unshift.apply(self, _a); return self} + +,$a6: +/* Array#join */ +function(_i,_a){var self,_b,_d,_h; +_h=nil; +self=this; +try{if(arguments.length>2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)')); +if(_a==null)_a=""; +; +_b=""; +self.$bf(function(_c){var _e,_f; +var _g=nil; +(_d=a$l(_c),_e=_d[0]==null?nil:_d[0],_f=_d[1]==null?nil:_d[1],_d); +_b=_b.$R(nil,_e.$o()); +if((_d=_f.$8(nil,self.$V().$U(nil,1)),_d===false||_d===nil)){_g=_b=_b.$R(nil,_a)}else{_g=nil}; +return _g}); +_h=_b; +return _h}catch(_j){if(_j instanceof a$c && (!_j.a$b || _j.a$b==98))return _j.a$a; +throw(_j)}} + +}});$E = a$d({a$j: [],a$e: $k,a$f: {$F: +/* T_TestSimpleOutput::TestSimpleOutput.main */ function(){var self,_a; _a=nil; self=this; if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)')); ; -_a=self.$u(nil,"test"); +_a=self.$u(nil,"Hello World from RubyJS"); return _a} -}}); $b.a$e = $k; -var a$n = [$i,$k,$l,$m,$f,$n,$o,$g,$r,$s,$w,$x,$y,$z,$A,$B,$C,$q,$D,$E,$F,$G,$H,$I,$J,$K,$0,$1,$2,$3,$Q,$4,$p,$P,$U,$7,$8,$9,$_,$t,$6,$V,$R,$X,$e,$L,$$,$aa,$ab,$ac,$5,$h,$ae,$ad,$M,$N,$af,$S,$d,$Y,$ai,$aj,$ak,$j,$v,$al,$am,$an,$W,$a,$O,$b,$c,$T,$ao,$u,$ap,$Z]; +},a$c: "T_TestSimpleOutput::TestSimpleOutput"});$aF = a$d({a$j: [],a$e: nil,a$c: "T_TestLebewesen"}); $b.a$e = $k; +var a$n = [$i,$k,$f,$l,$m,$n,$o,$p,$q,$r,$e,$s,$t,$u,$y,$x,$S,$T,$C,$W,$X,$h,$Y,$Z,$0,$H,$w,$F,$L,$4,$V,$5,$d,$6,$7,$8,$9,$_,$$,$aa,$ab,$j,$v,$a,$z,$U,$I,$ae,$af,$G,$M,$aj,$b,$c,$3,$ak,$al,$2,$am,$ah,$A,$an,$ac,$g,$P,$ao,$N,$J,$ad,$ap,$aq,$ar,$ag,$as,$at,$au,$av,$D,$Q,$ay,$K,$ai,$az,$aA,$aB,$R,$aC,$O,$B,$aD,$aE,$1,$E,$aF]; a$o(a$n); for (var i=0; i<a$n.length; i++) a$p(a$n[i]); -function main() { return $0.$G.apply($0, arguments); }var STDOUT_LINE_NO = 0; +function main() { return $S.$F.apply($S, arguments); }var STDOUT_LINE_NO = 0; var FAILURES = 0; -var TOTAL = 393; +var TOTAL = 422; function STDOUT_puts(str) { var out = document.getElementById('out_' + STDOUT_LINE_NO); var expected = document.getElementById('exp_' + STDOUT_LINE_NO);