diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-11-08 16:04:49 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-11-08 16:04:49 +0100 |
commit | c6e86fc1bfee7cb91782dd7067408d78a8e48ed9 (patch) | |
tree | f5c2c04d8a30e68180ef0114f02e95169e89483b /test/descriptor.rb | |
parent | 280f81dcffb3b8b929ff9cbe92ba17403f5a9dd3 (diff) |
probability plot for classification
Diffstat (limited to 'test/descriptor.rb')
-rw-r--r-- | test/descriptor.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/descriptor.rb b/test/descriptor.rb index e5d8ff9..42d4661 100644 --- a/test/descriptor.rb +++ b/test/descriptor.rb @@ -12,7 +12,9 @@ class DescriptorTest < MiniTest::Test def test_smarts c = OpenTox::Compound.from_smiles "N=C=C1CCC(=F=FO)C1" - File.open("tmp.png","w+"){|f| f.puts c.png} + File.open("/tmp/tmp.png","w+"){|f| f.puts c.png} + assert_match /^PNG/,`file -b /tmp/tmp.png` + File.delete "/tmp/tmp.png" s = Smarts.find_or_create_by(:smarts => "F=F") result = c.smarts_match [s] assert_equal [1], result |