importstd/unittest# run tests with following command:# nim c -r ch_1.nimprocspecial_numbers(n:openArray[int]):int=foriin1..len(n):iflen(n)modi==0:result+=n[i-1]*n[i-1]suite"special numbers":test"[1, 2, 3, 4]":check(special_numbers([1,2,3,4])==21)test"[2, 7, 1, 19, 18, 3]":check(special_numbers([2,7,1,19,18,3])==63)