Lines Matching refs:expect
18 expect(search(Float64Array.of(), 100)).toEqual(-1);
19 expect(search(Float64Array.of(42), 42)).toEqual(0);
20 expect(search(Float64Array.of(42), 43)).toEqual(0);
21 expect(search(Float64Array.of(42), 41)).toEqual(-1);
22 expect(search(Float64Array.of(42, 43), 42)).toEqual(0);
23 expect(search(Float64Array.of(42, 43), 43)).toEqual(1);
24 expect(search(Float64Array.of(42, 43), 44)).toEqual(1);
25 expect(search(Float64Array.of(42, 43, 44), 41)).toEqual(-1);
26 expect(search(Float64Array.of(42, 43, 44), 42)).toEqual(0);
27 expect(search(Float64Array.of(42, 43, 44), 43)).toEqual(1);
28 expect(search(Float64Array.of(42, 43, 44), 44)).toEqual(2);
29 expect(search(Float64Array.of(42, 43, 44), 45)).toEqual(2);
33 expect(searchEq([], 100)).toEqual([0, 0]);
34 expect(searchEq([42], 41)).toEqual([0, 0]);
35 expect(searchEq([42], 42)).toEqual([0, 1]);
36 expect(searchEq([42], 43)).toEqual([1, 1]);
37 expect(searchEq([42, 44], 42)).toEqual([0, 1]);
38 expect(searchEq([42, 42], 42)).toEqual([0, 2]);
39 expect(searchEq([41, 43], 42)).toEqual([1, 1]);
43 expect(searchRange([], 100)).toEqual([0, 0]);
44 expect(searchRange([42], 41)).toEqual([0, 0]);
45 expect(searchRange([42], 42)).toEqual([0, 1]);
46 expect(searchRange([42], 43)).toEqual([0, 1]);
48 expect(searchRange([39, 41], 38)).toEqual([0, 0]);
49 expect(searchRange([39, 41], 39)).toEqual([0, 1]);
50 expect(searchRange([39, 41], 40)).toEqual([0, 1]);
51 expect(searchRange([39, 41], 41)).toEqual([1, 2]);
52 expect(searchRange([39, 41], 42)).toEqual([1, 2]);
54 expect(searchRange([38, 40, 40, 40, 42], 39)).toEqual([0, 1]);
55 expect(searchRange([38, 40, 40, 40, 42], 40)).toEqual([1, 4]);
56 expect(searchRange([38, 40, 40, 40, 42], 41)).toEqual([3, 4]);
60 expect(searchSegment(Float64Array.of(), 100)).toEqual([-1, -1]);
61 expect(searchSegment(Float64Array.of(42), 41)).toEqual([-1, 0]);
62 expect(searchSegment(Float64Array.of(42), 42)).toEqual([0, -1]);
63 expect(searchSegment(Float64Array.of(42), 43)).toEqual([0, -1]);
64 expect(searchSegment(Float64Array.of(42, 44), 42)).toEqual([0, 1]);