resin 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,35 @@
1
1
  smalltalk.addPackage('Kernel-Tests', {});
2
+ smalltalk.addClass('ArrayTest', smalltalk.TestCase, [], 'Kernel-Tests');
3
+ smalltalk.addMethod(
4
+ unescape('_testFirstN'),
5
+ smalltalk.method({
6
+ selector: unescape('testFirstN'),
7
+ fn: function (){
8
+ var self=this;
9
+ smalltalk.send(self, "_assert_equals_", [[(1),(2),(3)], smalltalk.send([(1),(2),(3),(4),(5)], "_first_", [(3)])]);
10
+ return self;}
11
+ }),
12
+ smalltalk.ArrayTest);
13
+
14
+ smalltalk.addMethod(
15
+ unescape('_testIfEmpty'),
16
+ smalltalk.method({
17
+ selector: unescape('testIfEmpty'),
18
+ fn: function (){
19
+ var self=this;
20
+ smalltalk.send(self, "_assert_equals_", ["zork", smalltalk.send("", "_ifEmpty_", [(function(){return "zork";})])]);
21
+ return self;}
22
+ }),
23
+ smalltalk.ArrayTest);
24
+
25
+
26
+
2
27
  smalltalk.addClass('StringTest', smalltalk.TestCase, [], 'Kernel-Tests');
3
28
  smalltalk.addMethod(
4
29
  unescape('_testJoin'),
5
30
  smalltalk.method({
6
31
  selector: unescape('testJoin'),
7
- fn: function (){
32
+ fn: function () {
8
33
  var self=this;
9
34
  smalltalk.send(self, "_assert_equals_", [unescape("hello%2Cworld"), smalltalk.send(unescape("%2C"), "_join_", [["hello", "world"]])]);
10
35
  return self;}
@@ -15,7 +40,7 @@ smalltalk.addMethod(
15
40
  unescape('_testStreamContents'),
16
41
  smalltalk.method({
17
42
  selector: unescape('testStreamContents'),
18
- fn: function (){
43
+ fn: function () {
19
44
  var self=this;
20
45
  smalltalk.send(self, "_assert_equals_", ["hello world", smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){return (function($rec){smalltalk.send($rec, "_nextPutAll_", ["hello"]);smalltalk.send($rec, "_space", []);return smalltalk.send($rec, "_nextPutAll_", ["world"]);})(aStream);})])]);
21
46
  return self;}
@@ -26,7 +51,7 @@ smalltalk.addMethod(
26
51
  unescape('_testIncludesSubString'),
27
52
  smalltalk.method({
28
53
  selector: unescape('testIncludesSubString'),
29
- fn: function (){
54
+ fn: function () {
30
55
  var self=this;
31
56
  smalltalk.send(self, "_assert_", [smalltalk.send("amber", "_includesSubString_", ["ber"])]);
32
57
  smalltalk.send(self, "_deny_", [smalltalk.send("amber", "_includesSubString_", ["zork"])]);
@@ -38,7 +63,7 @@ smalltalk.addMethod(
38
63
  unescape('_testEquality'),
39
64
  smalltalk.method({
40
65
  selector: unescape('testEquality'),
41
- fn: function (){
66
+ fn: function () {
42
67
  var self=this;
43
68
  smalltalk.send(self, "_assert_", [smalltalk.send("hello", "__eq", ["hello"])]);
44
69
  smalltalk.send(self, "_deny_", [smalltalk.send("hello", "__eq", ["world"])]);
@@ -53,7 +78,7 @@ smalltalk.addMethod(
53
78
  unescape('_testCopyWithoutAll'),
54
79
  smalltalk.method({
55
80
  selector: unescape('testCopyWithoutAll'),
56
- fn: function (){
81
+ fn: function () {
57
82
  var self=this;
58
83
  smalltalk.send(self, "_assert_equals_", ["hello world", smalltalk.send(unescape("*hello*%20*world*"), "_copyWithoutAll_", [unescape("*")])]);
59
84
  return self;}
@@ -64,7 +89,7 @@ smalltalk.addMethod(
64
89
  unescape('_testAt'),
65
90
  smalltalk.method({
66
91
  selector: unescape('testAt'),
67
- fn: function (){
92
+ fn: function () {
68
93
  var self=this;
69
94
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send("hello", "_at_", [(1)]), "__eq", ["h"])]);
70
95
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send("hello", "_at_", [(5)]), "__eq", ["o"])]);
@@ -77,7 +102,7 @@ smalltalk.addMethod(
77
102
  unescape('_testAtPut'),
78
103
  smalltalk.method({
79
104
  selector: unescape('testAtPut'),
80
- fn: function (){
105
+ fn: function () {
81
106
  var self=this;
82
107
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send("hello", "_at_put_", [(1), "a"]);}), (smalltalk.Error || Error)]);
83
108
  return self;}
@@ -88,7 +113,7 @@ smalltalk.addMethod(
88
113
  unescape('_testSize'),
89
114
  smalltalk.method({
90
115
  selector: unescape('testSize'),
91
- fn: function (){
116
+ fn: function () {
92
117
  var self=this;
93
118
  smalltalk.send(self, "_assert_equals_", [smalltalk.send("smalltalk", "_size", []), (9)]);
94
119
  smalltalk.send(self, "_assert_equals_", [smalltalk.send("", "_size", []), (0)]);
@@ -100,7 +125,7 @@ smalltalk.addMethod(
100
125
  unescape('_testAddRemove'),
101
126
  smalltalk.method({
102
127
  selector: unescape('testAddRemove'),
103
- fn: function (){
128
+ fn: function () {
104
129
  var self=this;
105
130
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send("hello", "_add_", ["a"]);}), (smalltalk.Error || Error)]);
106
131
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send("hello", "_remove_", ["h"]);}), (smalltalk.Error || Error)]);
@@ -108,6 +133,17 @@ return self;}
108
133
  }),
109
134
  smalltalk.StringTest);
110
135
 
136
+ smalltalk.addMethod(
137
+ unescape('_testAsArray'),
138
+ smalltalk.method({
139
+ selector: unescape('testAsArray'),
140
+ fn: function () {
141
+ var self=this;
142
+ smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send("hello", "_asArray", []), "__eq", [["h", "e", "l", "l", "o"]])]);
143
+ return self;}
144
+ }),
145
+ smalltalk.StringTest);
146
+
111
147
 
112
148
 
113
149
  smalltalk.addClass('DictionaryTest', smalltalk.TestCase, [], 'Kernel-Tests');
@@ -115,7 +151,7 @@ smalltalk.addMethod(
115
151
  unescape('_testPrintString'),
116
152
  smalltalk.method({
117
153
  selector: unescape('testPrintString'),
118
- fn: function (){
154
+ fn: function () {
119
155
  var self=this;
120
156
  smalltalk.send(self, "_assert_equals_", [unescape("a%20Dictionary%28%27firstname%27%20-%3E%20%27James%27%20%2C%20%27lastname%27%20-%3E%20%27Bond%27%29"), (function($rec){smalltalk.send($rec, "_at_put_", ["firstname", "James"]);smalltalk.send($rec, "_at_put_", ["lastname", "Bond"]);return smalltalk.send($rec, "_printString", []);})(smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []))]);
121
157
  return self;}
@@ -126,7 +162,7 @@ smalltalk.addMethod(
126
162
  unescape('_testEquality'),
127
163
  smalltalk.method({
128
164
  selector: unescape('testEquality'),
129
- fn: function (){
165
+ fn: function () {
130
166
  var self=this;
131
167
  var d1=nil;
132
168
  var d2=nil;
@@ -148,7 +184,7 @@ smalltalk.addMethod(
148
184
  unescape('_testDynamicDictionaries'),
149
185
  smalltalk.method({
150
186
  selector: unescape('testDynamicDictionaries'),
151
- fn: function (){
187
+ fn: function () {
152
188
  var self=this;
153
189
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.HashedCollection._fromPairs_([smalltalk.send("hello", "__minus_gt", [(1)])]), "_asDictionary", []), "__eq", [smalltalk.send((smalltalk.Dictionary || Dictionary), "_with_", [smalltalk.send("hello", "__minus_gt", [(1)])])])]);
154
190
  return self;}
@@ -159,7 +195,7 @@ smalltalk.addMethod(
159
195
  unescape('_testAccessing'),
160
196
  smalltalk.method({
161
197
  selector: unescape('testAccessing'),
162
- fn: function (){
198
+ fn: function () {
163
199
  var self=this;
164
200
  var d=nil;
165
201
  (d=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
@@ -179,7 +215,7 @@ smalltalk.addMethod(
179
215
  unescape('_testSize'),
180
216
  smalltalk.method({
181
217
  selector: unescape('testSize'),
182
- fn: function (){
218
+ fn: function () {
183
219
  var self=this;
184
220
  var d=nil;
185
221
  (d=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
@@ -196,7 +232,7 @@ smalltalk.addMethod(
196
232
  unescape('_testValues'),
197
233
  smalltalk.method({
198
234
  selector: unescape('testValues'),
199
- fn: function (){
235
+ fn: function () {
200
236
  var self=this;
201
237
  var d=nil;
202
238
  (d=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
@@ -212,7 +248,7 @@ smalltalk.addMethod(
212
248
  unescape('_testKeys'),
213
249
  smalltalk.method({
214
250
  selector: unescape('testKeys'),
215
- fn: function (){
251
+ fn: function () {
216
252
  var self=this;
217
253
  var d=nil;
218
254
  (d=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
@@ -231,7 +267,7 @@ smalltalk.addMethod(
231
267
  unescape('_testLogic'),
232
268
  smalltalk.method({
233
269
  selector: unescape('testLogic'),
234
- fn: function (){
270
+ fn: function () {
235
271
  var self=this;
236
272
  (function($rec){smalltalk.send($rec, "_assert_", [smalltalk.send(true, "_&", [true])]);smalltalk.send($rec, "_deny_", [smalltalk.send(true, "_&", [false])]);smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_&", [true])]);return smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_&", [false])]);})(self);
237
273
  (function($rec){smalltalk.send($rec, "_assert_", [smalltalk.send(true, "_|", [true])]);smalltalk.send($rec, "_assert_", [smalltalk.send(true, "_|", [false])]);smalltalk.send($rec, "_assert_", [smalltalk.send(false, "_|", [true])]);return smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_|", [false])]);})(self);
@@ -245,7 +281,7 @@ smalltalk.addMethod(
245
281
  unescape('_testEquality'),
246
282
  smalltalk.method({
247
283
  selector: unescape('testEquality'),
248
- fn: function (){
284
+ fn: function () {
249
285
  var self=this;
250
286
  smalltalk.send(self, "_deny_", [smalltalk.send((0), "__eq", [false])]);
251
287
  smalltalk.send(self, "_deny_", [smalltalk.send(false, "__eq", [(0)])]);
@@ -265,7 +301,7 @@ smalltalk.addMethod(
265
301
  unescape('_testLogicKeywords'),
266
302
  smalltalk.method({
267
303
  selector: unescape('testLogicKeywords'),
268
- fn: function (){
304
+ fn: function () {
269
305
  var self=this;
270
306
  (function($rec){smalltalk.send($rec, "_assert_", [smalltalk.send(true, "_and_", [(function(){return true;})])]);smalltalk.send($rec, "_deny_", [smalltalk.send(true, "_and_", [(function(){return false;})])]);smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_and_", [(function(){return true;})])]);return smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_and_", [(function(){return false;})])]);})(self);
271
307
  (function($rec){smalltalk.send($rec, "_assert_", [smalltalk.send(true, "_or_", [(function(){return true;})])]);smalltalk.send($rec, "_assert_", [smalltalk.send(true, "_or_", [(function(){return false;})])]);smalltalk.send($rec, "_assert_", [smalltalk.send(false, "_or_", [(function(){return true;})])]);return smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_or_", [(function(){return false;})])]);})(self);
@@ -279,7 +315,7 @@ smalltalk.addMethod(
279
315
  unescape('_testIfTrueIfFalse'),
280
316
  smalltalk.method({
281
317
  selector: unescape('testIfTrueIfFalse'),
282
- fn: function (){
318
+ fn: function () {
283
319
  var self=this;
284
320
  smalltalk.send(self, "_assert_", [smalltalk.send(((($receiver = true).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "alternative block";})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return "alternative block";})])), "__eq", ["alternative block"])]);
285
321
  smalltalk.send(self, "_assert_", [smalltalk.send(((($receiver = true).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return "alternative block";})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return "alternative block";})])), "__eq", [nil])]);
@@ -300,7 +336,7 @@ smalltalk.addMethod(
300
336
  unescape('_testPrintShowingDecimalPlaces'),
301
337
  smalltalk.method({
302
338
  selector: unescape('testPrintShowingDecimalPlaces'),
303
- fn: function (){
339
+ fn: function () {
304
340
  var self=this;
305
341
  smalltalk.send(self, "_assert_equals_", ["23.00", smalltalk.send((23), "_printShowingDecimalPlaces_", [(2)])]);
306
342
  smalltalk.send(self, "_assert_equals_", ["23.57", smalltalk.send((23.5698), "_printShowingDecimalPlaces_", [(2)])]);
@@ -323,7 +359,7 @@ smalltalk.addMethod(
323
359
  unescape('_testEquality'),
324
360
  smalltalk.method({
325
361
  selector: unescape('testEquality'),
326
- fn: function (){
362
+ fn: function () {
327
363
  var self=this;
328
364
  smalltalk.send(self, "_assert_", [smalltalk.send((1), "__eq", [(1)])]);
329
365
  smalltalk.send(self, "_assert_", [smalltalk.send((0), "__eq", [(0)])]);
@@ -343,7 +379,7 @@ smalltalk.addMethod(
343
379
  unescape('_testArithmetic'),
344
380
  smalltalk.method({
345
381
  selector: unescape('testArithmetic'),
346
- fn: function (){
382
+ fn: function () {
347
383
  var self=this;
348
384
  smalltalk.send(self, "_assert_", [smalltalk.send((1.5) + (1), "__eq", [(2.5)])]);
349
385
  smalltalk.send(self, "_assert_", [smalltalk.send((2) - (1), "__eq", [(1)])]);
@@ -360,7 +396,7 @@ smalltalk.addMethod(
360
396
  unescape('_testRounded'),
361
397
  smalltalk.method({
362
398
  selector: unescape('testRounded'),
363
- fn: function (){
399
+ fn: function () {
364
400
  var self=this;
365
401
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3), "_rounded", []), "__eq", [(3)])]);
366
402
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3.212), "_rounded", []), "__eq", [(3)])]);
@@ -373,7 +409,7 @@ smalltalk.addMethod(
373
409
  unescape('_testNegated'),
374
410
  smalltalk.method({
375
411
  selector: unescape('testNegated'),
376
- fn: function (){
412
+ fn: function () {
377
413
  var self=this;
378
414
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3), "_negated", []), "__eq", [(-3)])]);
379
415
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((-3), "_negated", []), "__eq", [(3)])]);
@@ -385,7 +421,7 @@ smalltalk.addMethod(
385
421
  unescape('_testComparison'),
386
422
  smalltalk.method({
387
423
  selector: unescape('testComparison'),
388
- fn: function (){
424
+ fn: function () {
389
425
  var self=this;
390
426
  smalltalk.send(self, "_assert_", [(3) > (2)]);
391
427
  smalltalk.send(self, "_assert_", [(2) < (3)]);
@@ -403,7 +439,7 @@ smalltalk.addMethod(
403
439
  unescape('_testTruncated'),
404
440
  smalltalk.method({
405
441
  selector: unescape('testTruncated'),
406
- fn: function (){
442
+ fn: function () {
407
443
  var self=this;
408
444
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3), "_truncated", []), "__eq", [(3)])]);
409
445
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3.212), "_truncated", []), "__eq", [(3)])]);
@@ -416,7 +452,7 @@ smalltalk.addMethod(
416
452
  unescape('_testCopying'),
417
453
  smalltalk.method({
418
454
  selector: unescape('testCopying'),
419
- fn: function (){
455
+ fn: function () {
420
456
  var self=this;
421
457
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "_copy", []), "__eq_eq", [(1)])]);
422
458
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "_deepCopy", []), "__eq_eq", [(1)])]);
@@ -428,7 +464,7 @@ smalltalk.addMethod(
428
464
  unescape('_testMinMax'),
429
465
  smalltalk.method({
430
466
  selector: unescape('testMinMax'),
431
- fn: function (){
467
+ fn: function () {
432
468
  var self=this;
433
469
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((2), "_max_", [(5)]), (5)]);
434
470
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((2), "_min_", [(5)]), (2)]);
@@ -440,7 +476,7 @@ smalltalk.addMethod(
440
476
  unescape('_testIdentity'),
441
477
  smalltalk.method({
442
478
  selector: unescape('testIdentity'),
443
- fn: function (){
479
+ fn: function () {
444
480
  var self=this;
445
481
  smalltalk.send(self, "_assert_", [smalltalk.send((1), "__eq_eq", [(1)])]);
446
482
  smalltalk.send(self, "_assert_", [smalltalk.send((0), "__eq_eq", [(0)])]);
@@ -457,7 +493,7 @@ smalltalk.addMethod(
457
493
  unescape('_testSqrt'),
458
494
  smalltalk.method({
459
495
  selector: unescape('testSqrt'),
460
- fn: function (){
496
+ fn: function () {
461
497
  var self=this;
462
498
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((4), "_sqrt", []), "__eq", [(2)])]);
463
499
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((16), "_sqrt", []), "__eq", [(4)])]);
@@ -469,7 +505,7 @@ smalltalk.addMethod(
469
505
  unescape('_testSquared'),
470
506
  smalltalk.method({
471
507
  selector: unescape('testSquared'),
472
- fn: function (){
508
+ fn: function () {
473
509
  var self=this;
474
510
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((4), "_squared", []), "__eq", [(16)])]);
475
511
  return self;}
@@ -480,7 +516,7 @@ smalltalk.addMethod(
480
516
  unescape('_testTimesRepeat'),
481
517
  smalltalk.method({
482
518
  selector: unescape('testTimesRepeat'),
483
- fn: function (){
519
+ fn: function () {
484
520
  var self=this;
485
521
  var i=nil;
486
522
  (i=(0));
@@ -496,7 +532,7 @@ smalltalk.addMethod(
496
532
  unescape('_testTo'),
497
533
  smalltalk.method({
498
534
  selector: unescape('testTo'),
499
- fn: function (){
535
+ fn: function () {
500
536
  var self=this;
501
537
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((1), "_to_", [(5)]), [(1), (2), (3), (4), (5)]]);
502
538
  return self;}
@@ -507,7 +543,7 @@ smalltalk.addMethod(
507
543
  unescape('_testToBy'),
508
544
  smalltalk.method({
509
545
  selector: unescape('testToBy'),
510
- fn: function (){
546
+ fn: function () {
511
547
  var self=this;
512
548
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((0), "_to_by_", [(6), (2)]), [(0), (2), (4), (6)]]);
513
549
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send((1), "_to_by_", [(4), (0)]);}), (smalltalk.Error || Error)]);
@@ -522,7 +558,7 @@ smalltalk.addMethod(
522
558
  unescape('_jsObject'),
523
559
  smalltalk.method({
524
560
  selector: unescape('jsObject'),
525
- fn: function (){
561
+ fn: function () {
526
562
  var self=this;
527
563
  return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}};
528
564
  return self;}
@@ -533,7 +569,7 @@ smalltalk.addMethod(
533
569
  unescape('_testMethodWithArguments'),
534
570
  smalltalk.method({
535
571
  selector: unescape('testMethodWithArguments'),
536
- fn: function (){
572
+ fn: function () {
537
573
  var self=this;
538
574
  smalltalk.send(self, "_deny_", [smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_hasClass_", ["amber"])]);
539
575
  smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["amber"]);
@@ -548,7 +584,7 @@ smalltalk.addMethod(
548
584
  unescape('_testYourself'),
549
585
  smalltalk.method({
550
586
  selector: unescape('testYourself'),
551
- fn: function (){
587
+ fn: function () {
552
588
  var self=this;
553
589
  var body=nil;
554
590
  (body=(function($rec){smalltalk.send($rec, "_addClass_", ["amber"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send("body", "_asJQuery", [])));
@@ -563,7 +599,7 @@ smalltalk.addMethod(
563
599
  unescape('_testPropertyThatReturnsEmptyString'),
564
600
  smalltalk.method({
565
601
  selector: unescape('testPropertyThatReturnsEmptyString'),
566
- fn: function (){
602
+ fn: function () {
567
603
  var self=this;
568
604
  document.location.hash = '';
569
605
  smalltalk.send(self, "_assert_equals_", ["", smalltalk.send(smalltalk.send((typeof document == 'undefined' ? nil : document), "_location", []), "_hash", [])]);
@@ -577,7 +613,7 @@ smalltalk.addMethod(
577
613
  unescape('_testDNU'),
578
614
  smalltalk.method({
579
615
  selector: unescape('testDNU'),
580
- fn: function (){
616
+ fn: function () {
581
617
  var self=this;
582
618
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_foo", []);}), (smalltalk.MessageNotUnderstood || MessageNotUnderstood)]);
583
619
  return self;}
@@ -588,7 +624,7 @@ smalltalk.addMethod(
588
624
  unescape('_testMessageSend'),
589
625
  smalltalk.method({
590
626
  selector: unescape('testMessageSend'),
591
- fn: function (){
627
+ fn: function () {
592
628
  var self=this;
593
629
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send(self, "_jsObject", []), "_a", []), (1)]);
594
630
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send(self, "_jsObject", []), "_b", []), (2)]);
@@ -601,7 +637,7 @@ smalltalk.addMethod(
601
637
  unescape('_testPrinting'),
602
638
  smalltalk.method({
603
639
  selector: unescape('testPrinting'),
604
- fn: function (){
640
+ fn: function () {
605
641
  var self=this;
606
642
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_jsObject", []), "_printString", []), "__eq", [unescape("%5Bobject%20Object%5D")])]);
607
643
  return self;}
@@ -615,7 +651,7 @@ smalltalk.addMethod(
615
651
  unescape('_setUp'),
616
652
  smalltalk.method({
617
653
  selector: unescape('setUp'),
618
- fn: function (){
654
+ fn: function () {
619
655
  var self=this;
620
656
  (self['@backUpCommitPathJs']=smalltalk.send((smalltalk.Package || Package), "_defaultCommitPathJs", []));
621
657
  (self['@backUpCommitPathSt']=smalltalk.send((smalltalk.Package || Package), "_defaultCommitPathSt", []));
@@ -630,7 +666,7 @@ smalltalk.addMethod(
630
666
  unescape('_tearDown'),
631
667
  smalltalk.method({
632
668
  selector: unescape('tearDown'),
633
- fn: function (){
669
+ fn: function () {
634
670
  var self=this;
635
671
  (function($rec){smalltalk.send($rec, "_defaultCommitPathJs_", [self['@backUpCommitPathJs']]);return smalltalk.send($rec, "_defaultCommitPathSt_", [self['@backUpCommitPathSt']]);})((smalltalk.Package || Package));
636
672
  return self;}
@@ -641,7 +677,7 @@ smalltalk.addMethod(
641
677
  unescape('_testGrulCommitPathStShouldBeGrulSt'),
642
678
  smalltalk.method({
643
679
  selector: unescape('testGrulCommitPathStShouldBeGrulSt'),
644
- fn: function (){
680
+ fn: function () {
645
681
  var self=this;
646
682
  smalltalk.send(self, "_assert_equals_", [unescape("grul/st"), smalltalk.send(self['@grulPackage'], "_commitPathSt", [])]);
647
683
  return self;}
@@ -652,7 +688,7 @@ smalltalk.addMethod(
652
688
  unescape('_testZorkCommitPathStShouldBeSt'),
653
689
  smalltalk.method({
654
690
  selector: unescape('testZorkCommitPathStShouldBeSt'),
655
- fn: function (){
691
+ fn: function () {
656
692
  var self=this;
657
693
  smalltalk.send(self, "_assert_equals_", ["st", smalltalk.send(self['@zorkPackage'], "_commitPathSt", [])]);
658
694
  return self;}
@@ -663,7 +699,7 @@ smalltalk.addMethod(
663
699
  unescape('_testZorkCommitPathJsShouldBeJs'),
664
700
  smalltalk.method({
665
701
  selector: unescape('testZorkCommitPathJsShouldBeJs'),
666
- fn: function (){
702
+ fn: function () {
667
703
  var self=this;
668
704
  smalltalk.send(self, "_assert_equals_", ["js", smalltalk.send(self['@zorkPackage'], "_commitPathJs", [])]);
669
705
  return self;}
@@ -674,7 +710,7 @@ smalltalk.addMethod(
674
710
  unescape('_testGrulCommitPathJsShouldBeServerGrulJs'),
675
711
  smalltalk.method({
676
712
  selector: unescape('testGrulCommitPathJsShouldBeServerGrulJs'),
677
- fn: function (){
713
+ fn: function () {
678
714
  var self=this;
679
715
  smalltalk.send(self, "_assert_equals_", [unescape("server/grul/js"), smalltalk.send(self['@grulPackage'], "_commitPathJs", [])]);
680
716
  return self;}
@@ -683,82 +719,12 @@ smalltalk.PackageTest);
683
719
 
684
720
 
685
721
 
686
- smalltalk.addClass('PackageWithDefaultCommitPathChangedTest', smalltalk.PackageTest, [], 'Kernel-Tests');
687
- smalltalk.addMethod(
688
- unescape('_setUp'),
689
- smalltalk.method({
690
- selector: unescape('setUp'),
691
- fn: function (){
692
- var self=this;
693
- smalltalk.send(self, "_setUp", [], smalltalk.PackageTest);
694
- (function($rec){smalltalk.send($rec, "_defaultCommitPathJs_", [unescape("javascripts/")]);return smalltalk.send($rec, "_defaultCommitPathSt_", [unescape("smalltalk/")]);})((smalltalk.Package || Package));
695
- return self;}
696
- }),
697
- smalltalk.PackageWithDefaultCommitPathChangedTest);
698
-
699
- smalltalk.addMethod(
700
- unescape('_testGrulCommitPathJsShouldBeServerGrulJs'),
701
- smalltalk.method({
702
- selector: unescape('testGrulCommitPathJsShouldBeServerGrulJs'),
703
- fn: function (){
704
- var self=this;
705
- smalltalk.send(self, "_assert_equals_", [unescape("server/grul/js"), smalltalk.send(self['@grulPackage'], "_commitPathJs", [])]);
706
- return self;}
707
- }),
708
- smalltalk.PackageWithDefaultCommitPathChangedTest);
709
-
710
- smalltalk.addMethod(
711
- unescape('_testGrulCommitPathStShouldBeGrulSt'),
712
- smalltalk.method({
713
- selector: unescape('testGrulCommitPathStShouldBeGrulSt'),
714
- fn: function (){
715
- var self=this;
716
- smalltalk.send(self, "_assert_equals_", [unescape("grul/st"), smalltalk.send(self['@grulPackage'], "_commitPathSt", [])]);
717
- return self;}
718
- }),
719
- smalltalk.PackageWithDefaultCommitPathChangedTest);
720
-
721
- smalltalk.addMethod(
722
- unescape('_testZorkCommitPathJsShouldBeJavascript'),
723
- smalltalk.method({
724
- selector: unescape('testZorkCommitPathJsShouldBeJavascript'),
725
- fn: function (){
726
- var self=this;
727
- smalltalk.send(self, "_assert_equals_", [unescape("javascripts/"), smalltalk.send(self['@zorkPackage'], "_commitPathJs", [])]);
728
- return self;}
729
- }),
730
- smalltalk.PackageWithDefaultCommitPathChangedTest);
731
-
732
- smalltalk.addMethod(
733
- unescape('_testZorkCommitPathStShouldBeSmalltalk'),
734
- smalltalk.method({
735
- selector: unescape('testZorkCommitPathStShouldBeSmalltalk'),
736
- fn: function (){
737
- var self=this;
738
- smalltalk.send(self, "_assert_equals_", [unescape("smalltalk/"), smalltalk.send(self['@zorkPackage'], "_commitPathSt", [])]);
739
- return self;}
740
- }),
741
- smalltalk.PackageWithDefaultCommitPathChangedTest);
742
-
743
-
744
- smalltalk.addMethod(
745
- unescape('_shouldInheritSelectors'),
746
- smalltalk.method({
747
- selector: unescape('shouldInheritSelectors'),
748
- fn: function (){
749
- var self=this;
750
- return false;
751
- return self;}
752
- }),
753
- smalltalk.PackageWithDefaultCommitPathChangedTest.klass);
754
-
755
-
756
722
  smalltalk.addClass('BlockClosureTest', smalltalk.TestCase, [], 'Kernel-Tests');
757
723
  smalltalk.addMethod(
758
724
  unescape('_testValue'),
759
725
  smalltalk.method({
760
726
  selector: unescape('testValue'),
761
- fn: function (){
727
+ fn: function () {
762
728
  var self=this;
763
729
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(){return (1) + (1);}), "_value", []), (2)]);
764
730
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(x){return ((($receiver = x).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));}), "_value_", [(2)]), (3)]);
@@ -772,7 +738,7 @@ smalltalk.addMethod(
772
738
  unescape('_testOnDo'),
773
739
  smalltalk.method({
774
740
  selector: unescape('testOnDo'),
775
- fn: function (){
741
+ fn: function () {
776
742
  var self=this;
777
743
  smalltalk.send(self, "_assert_", [smalltalk.send((function(){return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_signal", []);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){return true;})])]);
778
744
  return self;}
@@ -783,7 +749,7 @@ smalltalk.addMethod(
783
749
  unescape('_testEnsure'),
784
750
  smalltalk.method({
785
751
  selector: unescape('testEnsure'),
786
- fn: function (){
752
+ fn: function () {
787
753
  var self=this;
788
754
  smalltalk.send(self, "_assert_", [smalltalk.send((function(){return smalltalk.send((smalltalk.Error || Error), "_new", []);}), "_ensure_", [(function(){return true;})])]);
789
755
  return self;}
@@ -794,7 +760,7 @@ smalltalk.addMethod(
794
760
  unescape('_testNumArgs'),
795
761
  smalltalk.method({
796
762
  selector: unescape('testNumArgs'),
797
- fn: function (){
763
+ fn: function () {
798
764
  var self=this;
799
765
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(){return nil;}), "_numArgs", []), (0)]);
800
766
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(a, b){return nil;}), "_numArgs", []), (2)]);
@@ -806,7 +772,7 @@ smalltalk.addMethod(
806
772
  unescape('_testValueWithPossibleArguments'),
807
773
  smalltalk.method({
808
774
  selector: unescape('testValueWithPossibleArguments'),
809
- fn: function (){
775
+ fn: function () {
810
776
  var self=this;
811
777
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(){return (1);}), "_valueWithPossibleArguments_", [[(3), (4)]]), (1)]);
812
778
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(a){return ((($receiver = a).klass === smalltalk.Number) ? $receiver +(4) : smalltalk.send($receiver, "__plus", [(4)]));}), "_valueWithPossibleArguments_", [[(3), (4)]]), (7)]);
@@ -819,7 +785,7 @@ smalltalk.addMethod(
819
785
  unescape('_testWhileTrue'),
820
786
  smalltalk.method({
821
787
  selector: unescape('testWhileTrue'),
822
- fn: function (){
788
+ fn: function () {
823
789
  var self=this;
824
790
  var i=nil;
825
791
  (i=(0));
@@ -836,7 +802,7 @@ smalltalk.addMethod(
836
802
  unescape('_testWhileFalse'),
837
803
  smalltalk.method({
838
804
  selector: unescape('testWhileFalse'),
839
- fn: function (){
805
+ fn: function () {
840
806
  var self=this;
841
807
  var i=nil;
842
808
  (i=(0));
@@ -853,7 +819,7 @@ smalltalk.addMethod(
853
819
  unescape('_testCompiledSource'),
854
820
  smalltalk.method({
855
821
  selector: unescape('testCompiledSource'),
856
- fn: function (){
822
+ fn: function () {
857
823
  var self=this;
858
824
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((function(){return (1) + (1);}), "_compiledSource", []), "_includesSubString_", ["function"])]);
859
825
  return self;}
@@ -867,7 +833,7 @@ smalltalk.addMethod(
867
833
  unescape('_testEquality'),
868
834
  smalltalk.method({
869
835
  selector: unescape('testEquality'),
870
- fn: function (){
836
+ fn: function () {
871
837
  var self=this;
872
838
  var o=nil;
873
839
  (o=smalltalk.send((smalltalk.Object || Object), "_new", []));
@@ -883,7 +849,7 @@ smalltalk.addMethod(
883
849
  unescape('_testIdentity'),
884
850
  smalltalk.method({
885
851
  selector: unescape('testIdentity'),
886
- fn: function (){
852
+ fn: function () {
887
853
  var self=this;
888
854
  var o=nil;
889
855
  (o=smalltalk.send((smalltalk.Object || Object), "_new", []));
@@ -897,7 +863,7 @@ smalltalk.addMethod(
897
863
  unescape('_testHalt'),
898
864
  smalltalk.method({
899
865
  selector: unescape('testHalt'),
900
- fn: function (){
866
+ fn: function () {
901
867
  var self=this;
902
868
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send(smalltalk.send((smalltalk.Object || Object), "_new", []), "_halt", []);}), (smalltalk.Error || Error)]);
903
869
  return self;}
@@ -908,7 +874,7 @@ smalltalk.addMethod(
908
874
  unescape('_testBasicAccess'),
909
875
  smalltalk.method({
910
876
  selector: unescape('testBasicAccess'),
911
- fn: function (){
877
+ fn: function () {
912
878
  var self=this;
913
879
  var o=nil;
914
880
  (o=smalltalk.send((smalltalk.Object || Object), "_new", []));
@@ -923,7 +889,7 @@ smalltalk.addMethod(
923
889
  unescape('_testNilUndefined'),
924
890
  smalltalk.method({
925
891
  selector: unescape('testNilUndefined'),
926
- fn: function (){
892
+ fn: function () {
927
893
  var self=this;
928
894
  smalltalk.send(self, "_assert_", [smalltalk.send(nil, "__eq", [(typeof undefined == 'undefined' ? nil : undefined)])]);
929
895
  return self;}
@@ -934,7 +900,7 @@ smalltalk.addMethod(
934
900
  unescape('_testidentityHash'),
935
901
  smalltalk.method({
936
902
  selector: unescape('testidentityHash'),
937
- fn: function (){
903
+ fn: function () {
938
904
  var self=this;
939
905
  var o1=nil;
940
906
  var o2=nil;
@@ -950,7 +916,7 @@ smalltalk.addMethod(
950
916
  unescape('_testBasicPerform'),
951
917
  smalltalk.method({
952
918
  selector: unescape('testBasicPerform'),
953
- fn: function (){
919
+ fn: function () {
954
920
  var self=this;
955
921
  var o=nil;
956
922
  (o=smalltalk.send((smalltalk.Object || Object), "_new", []));
@@ -966,7 +932,7 @@ smalltalk.addMethod(
966
932
  unescape('_testIfNil'),
967
933
  smalltalk.method({
968
934
  selector: unescape('testIfNil'),
969
- fn: function (){
935
+ fn: function () {
970
936
  var self=this;
971
937
  smalltalk.send(self, "_deny_", [smalltalk.send(smalltalk.send((smalltalk.Object || Object), "_new", []), "_isNil", [])]);
972
938
  smalltalk.send(self, "_deny_", [smalltalk.send((($receiver = smalltalk.send((smalltalk.Object || Object), "_new", [])) == nil || $receiver == undefined) ? (function(){return true;})() : $receiver, "__eq", [true])]);
@@ -981,7 +947,7 @@ smalltalk.addMethod(
981
947
  unescape('_testInstVars'),
982
948
  smalltalk.method({
983
949
  selector: unescape('testInstVars'),
984
- fn: function (){
950
+ fn: function () {
985
951
  var self=this;
986
952
  var o=nil;
987
953
  (o=smalltalk.send((smalltalk.ObjectMock || ObjectMock), "_new", []));
@@ -997,7 +963,7 @@ smalltalk.addMethod(
997
963
  unescape('_testYourself'),
998
964
  smalltalk.method({
999
965
  selector: unescape('testYourself'),
1000
- fn: function (){
966
+ fn: function () {
1001
967
  var self=this;
1002
968
  var o=nil;
1003
969
  (o=smalltalk.send((smalltalk.ObjectMock || ObjectMock), "_new", []));
@@ -1010,7 +976,7 @@ smalltalk.addMethod(
1010
976
  unescape('_testDNU'),
1011
977
  smalltalk.method({
1012
978
  selector: unescape('testDNU'),
1013
- fn: function (){
979
+ fn: function () {
1014
980
  var self=this;
1015
981
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send(smalltalk.send((smalltalk.Object || Object), "_new", []), "_foo", []);}), (smalltalk.MessageNotUnderstood || MessageNotUnderstood)]);
1016
982
  return self;}
@@ -1024,7 +990,7 @@ smalltalk.addMethod(
1024
990
  unescape('_testEquality'),
1025
991
  smalltalk.method({
1026
992
  selector: unescape('testEquality'),
1027
- fn: function (){
993
+ fn: function () {
1028
994
  var self=this;
1029
995
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.symbolFor("hello"), "__eq", [smalltalk.symbolFor("hello")])]);
1030
996
  smalltalk.send(self, "_deny_", [smalltalk.send(smalltalk.symbolFor("hello"), "__eq", [smalltalk.symbolFor("world")])]);
@@ -1040,7 +1006,7 @@ smalltalk.addMethod(
1040
1006
  unescape('_testAt'),
1041
1007
  smalltalk.method({
1042
1008
  selector: unescape('testAt'),
1043
- fn: function (){
1009
+ fn: function () {
1044
1010
  var self=this;
1045
1011
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.symbolFor("hello"), "_at_", [(1)]), "__eq", ["h"])]);
1046
1012
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.symbolFor("hello"), "_at_", [(5)]), "__eq", ["o"])]);
@@ -1053,7 +1019,7 @@ smalltalk.addMethod(
1053
1019
  unescape('_testAtPut'),
1054
1020
  smalltalk.method({
1055
1021
  selector: unescape('testAtPut'),
1056
- fn: function (){
1022
+ fn: function () {
1057
1023
  var self=this;
1058
1024
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send("hello", "_at_put_", [(1), "a"]);}), (smalltalk.Error || Error)]);
1059
1025
  return self;}
@@ -1064,7 +1030,7 @@ smalltalk.addMethod(
1064
1030
  unescape('_testIdentity'),
1065
1031
  smalltalk.method({
1066
1032
  selector: unescape('testIdentity'),
1067
- fn: function (){
1033
+ fn: function () {
1068
1034
  var self=this;
1069
1035
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.symbolFor("hello"), "__eq_eq", [smalltalk.symbolFor("hello")])]);
1070
1036
  smalltalk.send(self, "_deny_", [smalltalk.send(smalltalk.symbolFor("hello"), "__eq_eq", [smalltalk.symbolFor("world")])]);
@@ -1078,7 +1044,7 @@ smalltalk.addMethod(
1078
1044
  unescape('_testComparing'),
1079
1045
  smalltalk.method({
1080
1046
  selector: unescape('testComparing'),
1081
- fn: function (){
1047
+ fn: function () {
1082
1048
  var self=this;
1083
1049
  smalltalk.send(self, "_assert_", [((($receiver = smalltalk.symbolFor("ab")).klass === smalltalk.Number) ? $receiver >smalltalk.symbolFor("aa") : smalltalk.send($receiver, "__gt", [smalltalk.symbolFor("aa")]))]);
1084
1050
  smalltalk.send(self, "_deny_", [((($receiver = smalltalk.symbolFor("ab")).klass === smalltalk.Number) ? $receiver >smalltalk.symbolFor("ba") : smalltalk.send($receiver, "__gt", [smalltalk.symbolFor("ba")]))]);
@@ -1096,7 +1062,7 @@ smalltalk.addMethod(
1096
1062
  unescape('_testSize'),
1097
1063
  smalltalk.method({
1098
1064
  selector: unescape('testSize'),
1099
- fn: function (){
1065
+ fn: function () {
1100
1066
  var self=this;
1101
1067
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.symbolFor("a"), "_size", []), (1)]);
1102
1068
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.symbolFor("aaaaa"), "_size", []), (5)]);
@@ -1108,7 +1074,7 @@ smalltalk.addMethod(
1108
1074
  unescape('_testAsString'),
1109
1075
  smalltalk.method({
1110
1076
  selector: unescape('testAsString'),
1111
- fn: function (){
1077
+ fn: function () {
1112
1078
  var self=this;
1113
1079
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.symbolFor("hello"), "_asString", []), "hello"]);
1114
1080
  return self;}
@@ -1119,7 +1085,7 @@ smalltalk.addMethod(
1119
1085
  unescape('_testAsSymbol'),
1120
1086
  smalltalk.method({
1121
1087
  selector: unescape('testAsSymbol'),
1122
- fn: function (){
1088
+ fn: function () {
1123
1089
  var self=this;
1124
1090
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.symbolFor("hello"), "__eq_eq", [smalltalk.send(smalltalk.symbolFor("hello"), "_asSymbol", [])])]);
1125
1091
  return self;}
@@ -1130,7 +1096,7 @@ smalltalk.addMethod(
1130
1096
  unescape('_testCopying'),
1131
1097
  smalltalk.method({
1132
1098
  selector: unescape('testCopying'),
1133
- fn: function (){
1099
+ fn: function () {
1134
1100
  var self=this;
1135
1101
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.symbolFor("hello"), "_copy", []), "__eq_eq", [smalltalk.symbolFor("hello")])]);
1136
1102
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.symbolFor("hello"), "_deepCopy", []), "__eq_eq", [smalltalk.symbolFor("hello")])]);
@@ -1142,7 +1108,7 @@ smalltalk.addMethod(
1142
1108
  unescape('_testIsSymbolIsString'),
1143
1109
  smalltalk.method({
1144
1110
  selector: unescape('testIsSymbolIsString'),
1145
- fn: function (){
1111
+ fn: function () {
1146
1112
  var self=this;
1147
1113
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.symbolFor("hello"), "_isSymbol", [])]);
1148
1114
  smalltalk.send(self, "_deny_", [smalltalk.send("hello", "_isSymbol", [])]);
@@ -1159,7 +1125,7 @@ smalltalk.addMethod(
1159
1125
  unescape('_foo'),
1160
1126
  smalltalk.method({
1161
1127
  selector: unescape('foo'),
1162
- fn: function (){
1128
+ fn: function () {
1163
1129
  var self=this;
1164
1130
  return self['@foo'];
1165
1131
  return self;}
@@ -1170,7 +1136,7 @@ smalltalk.addMethod(
1170
1136
  unescape('_foo_'),
1171
1137
  smalltalk.method({
1172
1138
  selector: unescape('foo%3A'),
1173
- fn: function (anObject){
1139
+ fn: function (anObject) {
1174
1140
  var self=this;
1175
1141
  (self['@foo']=anObject);
1176
1142
  return self;}
@@ -1184,7 +1150,7 @@ smalltalk.addMethod(
1184
1150
  unescape('_testIsNil'),
1185
1151
  smalltalk.method({
1186
1152
  selector: unescape('testIsNil'),
1187
- fn: function (){
1153
+ fn: function () {
1188
1154
  var self=this;
1189
1155
  smalltalk.send(self, "_assert_", [smalltalk.send(nil, "_isNil", [])]);
1190
1156
  smalltalk.send(self, "_deny_", [smalltalk.send(nil, "_notNil", [])]);
@@ -1196,7 +1162,7 @@ smalltalk.addMethod(
1196
1162
  unescape('_testIfNil'),
1197
1163
  smalltalk.method({
1198
1164
  selector: unescape('testIfNil'),
1199
- fn: function (){
1165
+ fn: function () {
1200
1166
  var self=this;
1201
1167
  smalltalk.send(self, "_assert_equals_", [(($receiver = nil) == nil || $receiver == undefined) ? (function(){return true;})() : $receiver, true]);
1202
1168
  smalltalk.send(self, "_deny_", [smalltalk.send((($receiver = nil) != nil && $receiver != undefined) ? (function(){return true;})() : nil, "__eq", [true])]);
@@ -1210,7 +1176,7 @@ smalltalk.addMethod(
1210
1176
  unescape('_testCopying'),
1211
1177
  smalltalk.method({
1212
1178
  selector: unescape('testCopying'),
1213
- fn: function (){
1179
+ fn: function () {
1214
1180
  var self=this;
1215
1181
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(nil, "_copy", []), nil]);
1216
1182
  return self;}
@@ -1221,7 +1187,7 @@ smalltalk.addMethod(
1221
1187
  unescape('_testDeepCopy'),
1222
1188
  smalltalk.method({
1223
1189
  selector: unescape('testDeepCopy'),
1224
- fn: function (){
1190
+ fn: function () {
1225
1191
  var self=this;
1226
1192
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(nil, "_deepCopy", []), "__eq", [nil])]);
1227
1193
  return self;}
@@ -1235,7 +1201,7 @@ smalltalk.addMethod(
1235
1201
  unescape('_testAccessing'),
1236
1202
  smalltalk.method({
1237
1203
  selector: unescape('testAccessing'),
1238
- fn: function (){
1204
+ fn: function () {
1239
1205
  var self=this;
1240
1206
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send((smalltalk.Point || Point), "_x_y_", [(3), (4)]), "_x", []), (3)]);
1241
1207
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send((smalltalk.Point || Point), "_x_y_", [(3), (4)]), "_y", []), (4)]);
@@ -1249,7 +1215,7 @@ smalltalk.addMethod(
1249
1215
  unescape('_testAt'),
1250
1216
  smalltalk.method({
1251
1217
  selector: unescape('testAt'),
1252
- fn: function (){
1218
+ fn: function () {
1253
1219
  var self=this;
1254
1220
  smalltalk.send(self, "_assert_equals_", [smalltalk.send((3), "__at", [(4)]), smalltalk.send((smalltalk.Point || Point), "_x_y_", [(3), (4)])]);
1255
1221
  return self;}
@@ -1260,7 +1226,7 @@ smalltalk.addMethod(
1260
1226
  unescape('_testEgality'),
1261
1227
  smalltalk.method({
1262
1228
  selector: unescape('testEgality'),
1263
- fn: function (){
1229
+ fn: function () {
1264
1230
  var self=this;
1265
1231
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3), "__at", [(4)]), "__eq", [smalltalk.send((3), "__at", [(4)])])]);
1266
1232
  smalltalk.send(self, "_deny_", [smalltalk.send(smalltalk.send((3), "__at", [(5)]), "__eq", [smalltalk.send((3), "__at", [(6)])])]);
@@ -1272,7 +1238,7 @@ smalltalk.addMethod(
1272
1238
  unescape('_testArithmetic'),
1273
1239
  smalltalk.method({
1274
1240
  selector: unescape('testArithmetic'),
1275
- fn: function (){
1241
+ fn: function () {
1276
1242
  var self=this;
1277
1243
  smalltalk.send(self, "_assert_equals_", [((($receiver = smalltalk.send((3), "__at", [(4)])).klass === smalltalk.Number) ? $receiver *smalltalk.send((3), "__at", [(4)]) : smalltalk.send($receiver, "__star", [smalltalk.send((3), "__at", [(4)])])), smalltalk.send((smalltalk.Point || Point), "_x_y_", [(9), (16)])]);
1278
1244
  smalltalk.send(self, "_assert_equals_", [((($receiver = smalltalk.send((3), "__at", [(4)])).klass === smalltalk.Number) ? $receiver +smalltalk.send((3), "__at", [(4)]) : smalltalk.send($receiver, "__plus", [smalltalk.send((3), "__at", [(4)])])), smalltalk.send((smalltalk.Point || Point), "_x_y_", [(6), (8)])]);
@@ -1282,6 +1248,20 @@ return self;}
1282
1248
  }),
1283
1249
  smalltalk.PointTest);
1284
1250
 
1251
+ smalltalk.addMethod(
1252
+ unescape('_testTranslateBy'),
1253
+ smalltalk.method({
1254
+ selector: unescape('testTranslateBy'),
1255
+ fn: function (){
1256
+ var self=this;
1257
+ smalltalk.send(self, "_assert_equals_", [smalltalk.send((3), "__at", [(4)]), smalltalk.send(smalltalk.send((3), "__at", [(3)]), "_translateBy_", [smalltalk.send((0), "__at", [(1)])])]);
1258
+ smalltalk.send(self, "_assert_equals_", [smalltalk.send((3), "__at", [(2)]), smalltalk.send(smalltalk.send((3), "__at", [(3)]), "_translateBy_", [smalltalk.send((0), "__at", [smalltalk.send((1), "_negated", [])])])]);
1259
+ smalltalk.send(self, "_assert_equals_", [smalltalk.send((5), "__at", [(6)]), smalltalk.send(smalltalk.send((3), "__at", [(3)]), "_translateBy_", [smalltalk.send((2), "__at", [(3)])])]);
1260
+ smalltalk.send(self, "_assert_equals_", [smalltalk.send((0), "__at", [(3)]), smalltalk.send(smalltalk.send((3), "__at", [(3)]), "_translateBy_", [smalltalk.send(smalltalk.send((3), "_negated", []), "__at", [(0)])])]);
1261
+ return self;}
1262
+ }),
1263
+ smalltalk.PointTest);
1264
+
1285
1265
 
1286
1266
 
1287
1267
  smalltalk.addClass('RandomTest', smalltalk.TestCase, [], 'Kernel-Tests');
@@ -1289,7 +1269,7 @@ smalltalk.addMethod(
1289
1269
  unescape('_textNext'),
1290
1270
  smalltalk.method({
1291
1271
  selector: unescape('textNext'),
1292
- fn: function (){
1272
+ fn: function () {
1293
1273
  var self=this;
1294
1274
  smalltalk.send((10000), "_timesRepeat_", [(function(){var current=nil;
1295
1275
  var next=nil;
@@ -1305,7 +1285,7 @@ smalltalk.addMethod(
1305
1285
  unescape('_setUp'),
1306
1286
  smalltalk.method({
1307
1287
  selector: unescape('setUp'),
1308
- fn: function (){
1288
+ fn: function () {
1309
1289
  var self=this;
1310
1290
  (self['@builder']=smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []));
1311
1291
  return self;}
@@ -1316,7 +1296,7 @@ smalltalk.addMethod(
1316
1296
  unescape('_tearDown'),
1317
1297
  smalltalk.method({
1318
1298
  selector: unescape('tearDown'),
1319
- fn: function (){
1299
+ fn: function () {
1320
1300
  var self=this;
1321
1301
  (($receiver = self['@theClass']) != nil && $receiver != undefined) ? (function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removeClass_", [self['@theClass']]);return (self['@theClass']=nil);})() : nil;
1322
1302
  return self;}
@@ -1327,7 +1307,7 @@ smalltalk.addMethod(
1327
1307
  unescape('_testClassCopy'),
1328
1308
  smalltalk.method({
1329
1309
  selector: unescape('testClassCopy'),
1330
- fn: function (){
1310
+ fn: function () {
1331
1311
  var self=this;
1332
1312
  (self['@theClass']=smalltalk.send(self['@builder'], "_copyClass_named_", [(smalltalk.ObjectMock || ObjectMock), "ObjectMock2"]));
1333
1313
  smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(self['@theClass'], "_superclass", []), "__eq_eq", [smalltalk.send((smalltalk.ObjectMock || ObjectMock), "_superclass", [])])]);
@@ -1343,7 +1323,7 @@ smalltalk.addMethod(
1343
1323
  unescape('_testInstanceVariableNames'),
1344
1324
  smalltalk.method({
1345
1325
  selector: unescape('testInstanceVariableNames'),
1346
- fn: function (){
1326
+ fn: function () {
1347
1327
  var self=this;
1348
1328
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(self['@builder'], "_instanceVariableNamesFor_", [" hello world "]), ["hello", "world"]]);
1349
1329
  return self;}
@@ -1357,7 +1337,7 @@ smalltalk.addMethod(
1357
1337
  unescape('_testUnicity'),
1358
1338
  smalltalk.method({
1359
1339
  selector: unescape('testUnicity'),
1360
- fn: function (){
1340
+ fn: function () {
1361
1341
  var self=this;
1362
1342
  var set=nil;
1363
1343
  (set=smalltalk.send((smalltalk.Set || Set), "_new", []));
@@ -1376,7 +1356,7 @@ smalltalk.addMethod(
1376
1356
  unescape('_testAt'),
1377
1357
  smalltalk.method({
1378
1358
  selector: unescape('testAt'),
1379
- fn: function (){
1359
+ fn: function () {
1380
1360
  var self=this;
1381
1361
  smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send(smalltalk.send((smalltalk.Set || Set), "_new", []), "_at_put_", [(1), (2)]);}), (smalltalk.Error || Error)]);
1382
1362
  return self;}
@@ -1387,7 +1367,7 @@ smalltalk.addMethod(
1387
1367
  unescape('_testAddRemove'),
1388
1368
  smalltalk.method({
1389
1369
  selector: unescape('testAddRemove'),
1390
- fn: function (){
1370
+ fn: function () {
1391
1371
  var self=this;
1392
1372
  var set=nil;
1393
1373
  (set=smalltalk.send((smalltalk.Set || Set), "_new", []));
@@ -1406,7 +1386,7 @@ smalltalk.addMethod(
1406
1386
  unescape('_testSize'),
1407
1387
  smalltalk.method({
1408
1388
  selector: unescape('testSize'),
1409
- fn: function (){
1389
+ fn: function () {
1410
1390
  var self=this;
1411
1391
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send((smalltalk.Set || Set), "_new", []), "_size", []), (0)]);
1412
1392
  smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send((smalltalk.Set || Set), "_withAll_", [[(1), (2), (3), (4)]]), "_size", []), (4)]);
@@ -1417,3 +1397,73 @@ smalltalk.SetTest);
1417
1397
 
1418
1398
 
1419
1399
 
1400
+ smalltalk.addClass('PackageWithDefaultCommitPathChangedTest', smalltalk.PackageTest, [], 'Kernel-Tests');
1401
+ smalltalk.addMethod(
1402
+ unescape('_setUp'),
1403
+ smalltalk.method({
1404
+ selector: unescape('setUp'),
1405
+ fn: function () {
1406
+ var self=this;
1407
+ smalltalk.send(self, "_setUp", [], smalltalk.PackageTest);
1408
+ (function($rec){smalltalk.send($rec, "_defaultCommitPathJs_", [unescape("javascripts/")]);return smalltalk.send($rec, "_defaultCommitPathSt_", [unescape("smalltalk/")]);})((smalltalk.Package || Package));
1409
+ return self;}
1410
+ }),
1411
+ smalltalk.PackageWithDefaultCommitPathChangedTest);
1412
+
1413
+ smalltalk.addMethod(
1414
+ unescape('_testGrulCommitPathJsShouldBeServerGrulJs'),
1415
+ smalltalk.method({
1416
+ selector: unescape('testGrulCommitPathJsShouldBeServerGrulJs'),
1417
+ fn: function () {
1418
+ var self=this;
1419
+ smalltalk.send(self, "_assert_equals_", [unescape("server/grul/js"), smalltalk.send(self['@grulPackage'], "_commitPathJs", [])]);
1420
+ return self;}
1421
+ }),
1422
+ smalltalk.PackageWithDefaultCommitPathChangedTest);
1423
+
1424
+ smalltalk.addMethod(
1425
+ unescape('_testGrulCommitPathStShouldBeGrulSt'),
1426
+ smalltalk.method({
1427
+ selector: unescape('testGrulCommitPathStShouldBeGrulSt'),
1428
+ fn: function () {
1429
+ var self=this;
1430
+ smalltalk.send(self, "_assert_equals_", [unescape("grul/st"), smalltalk.send(self['@grulPackage'], "_commitPathSt", [])]);
1431
+ return self;}
1432
+ }),
1433
+ smalltalk.PackageWithDefaultCommitPathChangedTest);
1434
+
1435
+ smalltalk.addMethod(
1436
+ unescape('_testZorkCommitPathJsShouldBeJavascript'),
1437
+ smalltalk.method({
1438
+ selector: unescape('testZorkCommitPathJsShouldBeJavascript'),
1439
+ fn: function () {
1440
+ var self=this;
1441
+ smalltalk.send(self, "_assert_equals_", [unescape("javascripts/"), smalltalk.send(self['@zorkPackage'], "_commitPathJs", [])]);
1442
+ return self;}
1443
+ }),
1444
+ smalltalk.PackageWithDefaultCommitPathChangedTest);
1445
+
1446
+ smalltalk.addMethod(
1447
+ unescape('_testZorkCommitPathStShouldBeSmalltalk'),
1448
+ smalltalk.method({
1449
+ selector: unescape('testZorkCommitPathStShouldBeSmalltalk'),
1450
+ fn: function () {
1451
+ var self=this;
1452
+ smalltalk.send(self, "_assert_equals_", [unescape("smalltalk/"), smalltalk.send(self['@zorkPackage'], "_commitPathSt", [])]);
1453
+ return self;}
1454
+ }),
1455
+ smalltalk.PackageWithDefaultCommitPathChangedTest);
1456
+
1457
+
1458
+ smalltalk.addMethod(
1459
+ unescape('_shouldInheritSelectors'),
1460
+ smalltalk.method({
1461
+ selector: unescape('shouldInheritSelectors'),
1462
+ fn: function () {
1463
+ var self=this;
1464
+ return false;
1465
+ return self;}
1466
+ }),
1467
+ smalltalk.PackageWithDefaultCommitPathChangedTest.klass);
1468
+
1469
+