tests/testthat/testPTE.R

################################################################################
# Tests for the periodic table of the elements
################################################################################

test_that('PTE works', {

  expect_equal(pte[1, "Name"], "Hydrogen")
  expect_equal(pte[pte$Symbol=='K', "ElectronConfiguration"], "[Ar]4s1")

  # TODO more tests
})

Try the georefdatar package in your browser

Any scripts or data that you put into this service are public.

georefdatar documentation built on May 29, 2024, 2:23 a.m.