Add precompiled expected results to test suite.

This commit is contained in:
James Roseborough
2012-09-06 14:00:32 +00:00
parent 29e2a3d61f
commit d5ac153dca
5 changed files with 31 additions and 14 deletions

View File

@@ -115,7 +115,7 @@ end
local N = tonumber(arg and arg[1]) or 1000
local bodies = { Sun, Jupiter, Saturn, Uranus, Neptune }
local nbody = table.getn(bodies)
local nbody = #bodies
offsetMomentum(bodies, nbody)
io.write( string.format("%0.9f",energy(bodies, nbody)), "\n")