mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-16 07:29:52 +08:00
feat(curriculum): add a missing test to the pyramid generator (#56331)
This commit is contained in:
+6
@@ -40,6 +40,12 @@ You should have a function named `pyramid`.
|
||||
assert.isFunction(pyramid);
|
||||
```
|
||||
|
||||
Your `pyramid` function should have three parameters.
|
||||
|
||||
```js
|
||||
assert.lengthOf(pyramid, 3);
|
||||
```
|
||||
|
||||
`pyramid('o', 4, false)` should return `"\n o\n ooo\n ooooo\nooooooo\n"`.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user