This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| danny@LAPTOP-QMKSA48E:/c/Users/truon/laravel/onyx-admin$ vendor/bin/phpunit --filter can_create_model | |
| PHPUnit 8.4.2 by Sebastian Bergmann and contributors. | |
| EEE 3 / 3 (100%) | |
| Time: 611 ms, Memory: 22.00 MB | |
| There were 3 errors: | |
| 1) Tests\Unit\AssetTest::can_create_model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sumItems(array) { | |
| | |
| let sum = 0; | |
| array.forEach((item) => { | |
| if(Array.isArray(item)) { | |
| sum += sumItems(item); | |
| } else { | |
| sum += item; | |
| } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Vampire { | |
| constructor(name, yearConverted) { | |
| this.name = name; | |
| this.yearConverted = yearConverted; | |
| this.offspring = []; | |
| this.creator = null; | |
| } | |
| /** Simple tree methods **/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sum(fromN, toN) { | |
| if (toN === fromN) { | |
| return fromN; | |
| } | |
| return toN + sum(fromN,toN-1) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| margin: 0px; | |
| padding: 0px; | |
| } | |
| </style> | |
| </head> |