diff --git a/exercises/practice/list-ops/.meta/proof.ci.ts b/exercises/practice/list-ops/.meta/proof.ci.ts index 1c5b6bf1a..d6988ae62 100644 --- a/exercises/practice/list-ops/.meta/proof.ci.ts +++ b/exercises/practice/list-ops/.meta/proof.ci.ts @@ -20,7 +20,7 @@ const Null: Cons = { append(other: Cons): Cons { return other }, - concat(): Cons { + concatenate(): Cons { return this }, forEach(): void { @@ -71,7 +71,7 @@ class Cons { return other.foldl((result, item) => result.push(item), this) } - public concat(others: Cons>): Cons { + public concatenate(others: Cons>): Cons { return others.foldl>((result, other) => result.append(other), this) } diff --git a/exercises/practice/list-ops/list-ops.test.ts b/exercises/practice/list-ops/list-ops.test.ts index 1935c716b..4850eb575 100644 --- a/exercises/practice/list-ops/list-ops.test.ts +++ b/exercises/practice/list-ops/list-ops.test.ts @@ -85,11 +85,11 @@ describe('append entries to a list and return the new list', () => { }) }) -describe('concat lists and lists of lists into new list', () => { +describe('concatenate lists and lists of lists into new list', () => { xit('empty list', () => { const list1 = List.create() const list2 = List.create>() - expect(list1.concat(list2)).toHaveValues() + expect(list1.concatenate(list2)).toHaveValues() }) xit('list of lists', () => { @@ -98,7 +98,7 @@ describe('concat lists and lists of lists into new list', () => { const list3 = List.create() const list4 = List.create(4, 5, 6) const listOfLists = List.create(list2, list3, list4) - expect(list1.concat(listOfLists)).toHaveValues(1, 2, 3, 4, 5, 6) + expect(list1.concatenate(listOfLists)).toHaveValues(1, 2, 3, 4, 5, 6) }) })