Skip to content

Commit 1eb75d1

Browse files
committed
Fix failing tests
1 parent b65336c commit 1eb75d1

File tree

1 file changed

+29
-27
lines changed

1 file changed

+29
-27
lines changed

src/core/reference.js

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
* textSize(16);
7676
*
7777
* // Create the message variable.
78-
* let message = 'hello, 🌍';
78+
* let message = 'Hello, 🌍!';
7979
*
8080
* // Display the message.
8181
* text(message, 50, 50);
8282
*
83-
* describe('The text "hello, 🌍" written at the center of a gray square.');
83+
* describe('The text "Hello, 🌍!" written on a gray background.');
8484
* }
8585
* </code>
8686
* </div>
@@ -92,7 +92,7 @@
9292
* function setup() {
9393
* createCanvas(100, 100);
9494
*
95-
* describe('A white circle moves from left to right on a gray square.');
95+
* describe('A white circle moves from left to right against a gray background.');
9696
* }
9797
*
9898
* function draw() {
@@ -225,7 +225,7 @@
225225
* createCanvas(100, 100);
226226
*
227227
* describe(
228-
* 'A gray square. A white circle follows the mouse user clicks on the canvas.'
228+
* 'A white circle on a gray background. The circle follows the mouse user clicks on the canvas.'
229229
* );
230230
* }
231231
*
@@ -247,7 +247,7 @@
247247
* createCanvas(100, 100);
248248
*
249249
* describe(
250-
* 'A gray square with a white ellipse at its center. The ellipse becomes a circle when the user presses the mouse.'
250+
* 'A white ellipse on a gray background. The ellipse becomes a circle when the user presses the mouse.'
251251
* );
252252
* }
253253
*
@@ -413,7 +413,7 @@
413413
* function setup() {
414414
* createCanvas(100, 100);
415415
*
416-
* describe('A gray square with a flower at its center.');
416+
* describe('A pink flower on a gray background.');
417417
* }
418418
*
419419
* function draw() {
@@ -441,7 +441,7 @@
441441
* function setup() {
442442
* createCanvas(100, 100);
443443
*
444-
* describe('A gray square with a flower at its center.');
444+
* describe('A pink flower on a gray background.');
445445
* }
446446
*
447447
* function draw() {
@@ -473,7 +473,7 @@
473473
* function setup() {
474474
* createCanvas(100, 100);
475475
*
476-
* describe('A gray square with the message 'hello, 🌍' at its center.');
476+
* describe('The message "Hello, 🌍!" written on a gray background.');
477477
* }
478478
*
479479
* function draw() {
@@ -492,7 +492,7 @@
492492
*
493493
* // Return a string with a personalized greeting.
494494
* function createGreeting(name) {
495-
* let message = `hello, ${name}`;
495+
* let message = `Hello, ${name}!`;
496496
* return message;
497497
* }
498498
* </code>
@@ -714,12 +714,12 @@
714714
*
715715
* <code>
716716
* // Use a string literal.
717-
* text('hello!', 10, 10);
717+
* text('Hello!', 10, 10);
718718
* </code>
719719
*
720720
* <code>
721721
* // Create a string variable.
722-
* let message = 'hello!';
722+
* let message = 'Hello!';
723723
*
724724
* // Use the string variable.
725725
* text(message, 10, 10);
@@ -803,7 +803,7 @@
803803
*
804804
* text(poem, 10, 10);
805805
* </code>
806-
*
806+
*
807807
* @property String
808808
*
809809
* @example
@@ -819,9 +819,9 @@
819819
* textSize(20);
820820
*
821821
* // Display a welcome message.
822-
* text('hello!', 50, 50);
822+
* text('Hello!', 50, 50);
823823
*
824-
* describe('A gray square with the text "hello!" written at the center.');
824+
* describe('The text "Hello!" written on a gray background.');
825825
* }
826826
* </code>
827827
* </div>
@@ -841,9 +841,9 @@
841841
* let world = '🌍';
842842
*
843843
* // Display a welcome message using a template string.
844-
* text(`hello! ${world}`, 50, 50);
844+
* text(`Hello, ${world}!`, 50, 50);
845845
*
846-
* describe('A gray square with the text "hello! 🌍" written at the center.');
846+
* describe('The text "Hello, 🌍!" written on a gray background.');
847847
* }
848848
* </code>
849849
* </div>
@@ -973,7 +973,7 @@
973973
* // Draw a smaller circle at the center.
974974
* circle(width / 2, height / 2, 30);
975975
*
976-
* describe('A gray square with two concentric white circles drawn at its center.');
976+
* describe('Two concentric, white circles drawn on a gray background.');
977977
* }
978978
* </code>
979979
* </div>
@@ -1071,7 +1071,7 @@
10711071
* function setup() {
10721072
* createCanvas(100, 100);
10731073
*
1074-
* describe('A gray square with a white circle drawn at its center.');
1074+
* describe('A white circle on a gray background.');
10751075
* }
10761076
*
10771077
* function draw() {
@@ -1093,7 +1093,7 @@
10931093
* function setup() {
10941094
* createCanvas(100, 100);
10951095
*
1096-
* describe('A gray square with a pink circle drawn at its center.');
1096+
* describe('A pink circle on a gray background.');
10971097
* }
10981098
*
10991099
* function draw() {
@@ -1116,7 +1116,7 @@
11161116
* function setup() {
11171117
* createCanvas(100, 100);
11181118
*
1119-
* describe('A gray square with a white circle drawn at its center.');
1119+
* describe('A white circle on a gray background.');
11201120
* }
11211121
*
11221122
* function draw() {
@@ -1303,7 +1303,7 @@
13031303
* }
13041304
*
13051305
* describe(
1306-
* 'A gray square with four white circles drawn in a horizontal line. The circles move randomly.'
1306+
* 'Four white circles in a horizontal line on a gray background. The circles move randomly.'
13071307
* );
13081308
* }
13091309
*
@@ -1506,7 +1506,7 @@
15061506
* // Slow the frame rate.
15071507
* frameRate(1);
15081508
*
1509-
* describe('A gray square with two frog faces drawn next to each other. The frogs hop around the screen.');
1509+
* describe('Two frog faces on a gray background. The frogs hop around randomly.');
15101510
* }
15111511
*
15121512
* function draw() {
@@ -1626,7 +1626,7 @@
16261626
* frameRate(1);
16271627
*
16281628
* describe(
1629-
* 'A gray square with five frog faces drawn next to each other. The frogs hop around the screen.'
1629+
* 'Five frog faces on a gray background. The frogs hop around randomly.'
16301630
* );
16311631
* }
16321632
*
@@ -1799,7 +1799,7 @@
17991799
* function setup() {
18001800
* createCanvas(100, 100);
18011801
*
1802-
* describe('A gray square with five black vertical lines.');
1802+
* describe('Five black vertical lines on a gray background.');
18031803
* }
18041804
*
18051805
* function draw() {
@@ -1890,7 +1890,7 @@
18901890
* function setup() {
18911891
* createCanvas(100, 100);
18921892
*
1893-
* describe('A gray square with four white circles drawn in a horizontal line.');
1893+
* describe('Four white circles drawn in a horizontal line on a gray background.');
18941894
* }
18951895
*
18961896
* function draw() {
@@ -1973,7 +1973,7 @@
19731973
* function setup() {
19741974
* createCanvas(100, 100);
19751975
*
1976-
* describe('A gray square with five black vertical lines.');
1976+
* describe('Five black vertical lines on a gray background.');
19771977
* }
19781978
*
19791979
* function draw() {
@@ -2001,7 +2001,9 @@
20012001
* // Slow the frame rate.
20022002
* frameRate(5);
20032003
*
2004-
* describe('A gray square with several concentric circles at the center. The circles' sizes decrease at random increments.');
2004+
* describe(
2005+
* "A gray square with several concentric circles at the center. The circles' sizes decrease at random increments."
2006+
* );
20052007
* }
20062008
*
20072009
* function draw() {

0 commit comments

Comments
 (0)