Fix SinglyLinkedList test and add to ligma.config
This commit is contained in:
parent
c04ba25515
commit
c74ac60bfe
2 changed files with 3 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ module.exports = {
|
|||
"BinarySearchList",
|
||||
"TwoCrystalBalls",
|
||||
"BubbleSort",
|
||||
"SinglyLinkedList",
|
||||
"DoublyLinkedList",
|
||||
"Queue",
|
||||
"Stack",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import LinkedList from "@code/SingleLinkedList";
|
||||
import SinglyLinkedList from "@code/SinglyLinkedList";
|
||||
import { test_list } from "./ListTest";
|
||||
|
||||
test("linked-list", function () {
|
||||
const list = new LinkedList<number>(3);
|
||||
const list = new SinglyLinkedList<number>();
|
||||
test_list(list);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue