Adds tests (2)
This commit is contained in:
		
							parent
							
								
									d3bc12ddd0
								
							
						
					
					
						commit
						fb4bc52324
					
				|  | @ -41,4 +41,13 @@ describe("Functions", () => { | ||||||
|   test("range#8", () => { |   test("range#8", () => { | ||||||
|     expect(Functions.range(1., 1., 3)) |> toEqual([|1., 1., 1.|]) |     expect(Functions.range(1., 1., 3)) |> toEqual([|1., 1., 1.|]) | ||||||
|   }); |   }); | ||||||
|  |   test("mean#1", () => { | ||||||
|  |     expect(Functions.mean([|1., 2., 3.|])) |> toEqual(2.) | ||||||
|  |   }); | ||||||
|  |   test("mean#2", () => { | ||||||
|  |     expect(Functions.mean([|1., 2., 3., (-2.)|])) |> toEqual(1.) | ||||||
|  |   }); | ||||||
|  |   test("mean#3", () => { | ||||||
|  |     expect(Functions.mean([|1., 2., 3., (-2.), (-10.)|])) |> toEqual(-1.2) | ||||||
|  |   }); | ||||||
| }); | }); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user