feat: speed violence and momentumn are happening
This commit is contained in:
parent
b6bc2a63b1
commit
44bdb7177f
15 changed files with 248 additions and 18 deletions
14
src/__tests__/LinearSearchList.ts
Normal file
14
src/__tests__/LinearSearchList.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import linear_fn from "@code/LinearSearchList"
|
||||
|
||||
test("linear search array", function() {
|
||||
|
||||
const foo = [1, 3, 4, 69, 71, 81, 90, 99, 420, 1337, 69420];
|
||||
expect(linear_fn(foo, 69)).toEqual(true);
|
||||
expect(linear_fn(foo, 1336)).toEqual(false);
|
||||
expect(linear_fn(foo, 69420)).toEqual(true);
|
||||
expect(linear_fn(foo, 69421)).toEqual(false);
|
||||
expect(linear_fn(foo, 1)).toEqual(true);
|
||||
expect(linear_fn(foo, 0)).toEqual(false);
|
||||
});
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue