Skip to content

Commit 8b0d862

Browse files
Improve instructions (#172)
resolves #165 [no important files changed]
1 parent 808a38d commit 8b0d862

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

exercises/practice/complex-numbers/complex-numbers.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ describe('Complex numbers', () => {
237237
const expected = new ComplexNumber(5, 0);
238238
const actual = new ComplexNumber(5, 0).conj;
239239

240-
expect(actual).toEqual(expected);
240+
expect(actual.real).toBeCloseTo(expected.real);
241+
expect(actual.imag).toBeCloseTo(expected.imag);
241242
});
242243

243244
xtest('Conjugate a purely imaginary number', () => {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Instruction append
2+
3+
Each verse should end with a newline `\n`, with no additional delimiter.

exercises/practice/house/.meta/proof.ci.wat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
;;
1818
;; Lyrics to 'This is the House that Jack Built'.
1919
;;
20-
;; @param {i32} startVerse - The initial reverse to recite
21-
;; @param {i32} endVerse - The final reverse to recite
20+
;; @param {i32} startVerse - The initial verse to recite
21+
;; @param {i32} endVerse - The final verse to recite
2222
;;
2323
;; @returns {(i32,i32)} - Offset and length of result string
2424
;; in linear memory.

exercises/practice/house/house.wat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
;;
55
;; Lyrics to 'This is the House that Jack Built'.
66
;;
7-
;; @param {i32} startVerse - The initial reverse to recite
8-
;; @param {i32} endVerse - The final reverse to recite
7+
;; @param {i32} startVerse - The initial verse to recite
8+
;; @param {i32} endVerse - The final verse to recite
99
;;
1010
;; @returns {(i32,i32)} - Offset and length of result string
1111
;; in linear memory.

exercises/practice/kindergarten-garden/.docs/instructions.append.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Output format
44

5-
Output the student's plants as a null-terminated string, using a comma and a space as separators.
5+
Output the student's plants as a string, using a comma and a space as separators.
66

77
## Reserved Memory
88

0 commit comments

Comments
 (0)