From 291337e920cc95510fce3c0cdcc62b4443cd3bc4 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 13 Oct 2016 14:03:19 +0200 Subject: Fix retrieving pubchem infos for ambiguous names --- tests/testthat/test_pai.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/testthat/test_pai.R b/tests/testthat/test_pai.R index 944ad04..1718a9a 100644 --- a/tests/testthat/test_pai.R +++ b/tests/testthat/test_pai.R @@ -1,8 +1,8 @@ context("Generation of pai objects") glyphosate <- pai$new("glyphosate", chyaml = FALSE) - -test_that("We can generate a pai object from its ISO common name", { + +test_that("a pai object is generated from its ISO common name", { expect_equivalent(glyphosate$alanwood$cas, "1071-83-6") expect_equivalent(glyphosate$alanwood$formula, "C3H8NO5P") expect_equivalent(glyphosate$alanwood$iupac_name, "N-(phosphonomethyl)glycine") @@ -12,8 +12,8 @@ test_that("We can generate a pai object from its ISO common name", { expect_equal(glyphosate$inchikey, ik) }) -test_that("RDKit information was added", { - expect_equivalent(glyphosate$rdkit$mw, 169.073) +test_that("a pai object is generated from an ambiguous name", { + deltamethrin <- pai$new("deltamethrin", chyaml = FALSE) }) test_that("PubChem information was added via webchem", { -- cgit v1.2.1