tests/testthat/test-full_cusip.R

test_that("Full CUSIP", {
  expect_equal(SEC13Flist::fullCusip("B3856410"), "B38564108")
  expect_equal(SEC13Flist::fullCusip("B38564109"), "0")
  expect_equal(SEC13Flist::fullCusip("123456#1"), "123456#13")
  expect_equal(SEC13Flist::fullCusip("123456#14"), "0")
  expect_equal(SEC13Flist::fullCusip("123456*1"), "123456*15")
  expect_equal(SEC13Flist::fullCusip("123456*16"), "0")
  expect_equal(SEC13Flist::fullCusip("123456(1"), "0")
})
yanlesin/SEC13Flist documentation built on Jan. 21, 2025, 5:23 p.m.