+ exponents are now valid: 1.212121e+18
[io/quag.git] / libs / iovm / tests / VectorTest.io
blobaeb518039a92d68e85b6ae54f21d1d0147c6dd55
1 VectorTest := UnitTest clone do(
2 testSum := method(
3 assertEquals(1+2+3+4+5, vector(1,2,3,4,5) sum)
6 testProduct := method(
7 assertEquals(1*2*3*4*5, vector(1,2,3,4,5) product)
10 testRootMeanSquare := method(
11 assertEquals(list(1,2,3,4,5) map(**2) sum /(5) sqrt, vector(1,2,3,4,5) rootMeanSquare)