aboutsummaryrefslogtreecommitdiff
path: root/challenge-218/barroff/vlang/ch-1_test.v
blob: ad61387008c1067ff6f2870668961ab1953e7e20 (plain)
1
2
3
4
5
6
7
8
9
module main

[assert_continues]
fn test_lists() {
	assert maximum_product([3, 1, 2]) == 6
	assert maximum_product([4, 1, 3, 2]) == 24
	assert maximum_product([-1, 0, 1, 3, 1]) == 3
	assert maximum_product([-8, 2, -9, 0, -4, 3]) == 216
}