diff options
Diffstat (limited to 'test/nanoparticles.rb')
-rw-r--r-- | test/nanoparticles.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/nanoparticles.rb b/test/nanoparticles.rb index 4fc04ff..8a6836c 100644 --- a/test/nanoparticles.rb +++ b/test/nanoparticles.rb @@ -2,11 +2,16 @@ require_relative "setup.rb" class NanoparticleTest < MiniTest::Test - MODENA = File.join DATA_DIR,"MODENA-EC50_EC25.csv" - def test_import Import::Enanomapper.import assert_operator Nanoparticle.count , :>, 570, "Only #{Nanoparticle.count} nanoparticles imported" end + def test_create_model + Model::NanoLazar.create_all.each do |model| + np = Nanoparticle.find(model.training_particle_ids.sample) + model.predict np + end + end + end |