diff options
author | helma@in-silico.ch <helma@in-silico.ch> | 2018-11-16 18:42:42 +0100 |
---|---|---|
committer | helma@in-silico.ch <helma@in-silico.ch> | 2018-11-16 18:42:42 +0100 |
commit | 0882c2cd0de934d7377fc9d08c306be98612c88a (patch) | |
tree | 683da6042a5cc4d1786c79fa94d02111ca4af67a /test/download.rb | |
parent | 7e547fd4a296f497615a7805d565b378cb1bd7cd (diff) |
real datasets for testing, test data cleanup, Daphnia import, upper and lower similarity thresholds
Diffstat (limited to 'test/download.rb')
-rw-r--r-- | test/download.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/download.rb b/test/download.rb index 9fd0f40..aeb99b9 100644 --- a/test/download.rb +++ b/test/download.rb @@ -17,6 +17,14 @@ class DownloadTest < MiniTest::Test FileUtils.rm(meta_file) end + def test_import_daphnia + Download.daphnia + table = CSV.read File.join(Download::DATA,"Acute_toxicity-Daphnia_magna.csv") + assert_equal "BrC(Br)Br", table[1][1] + assert_equal 0.74, table[1][2].to_f.round(2) + assert_equal "-log[LC50_mmol/L]", table[0][2] + end + end |