tests/testthat/test_basic.R

test_that('basic_word_list_check',{
  expect_equal(length(keyToEnglish(letters)), 26)

})

test_that('hash_stability_check',{
  expect_equal(keyToEnglish(letters), c("AddressBearInfectiousRecordDeformity", "FragmentParticularlyHomologousDepthSurrender",
                                        "ProminentPrecipitateRelaxAnimationTubular", "VersionNationalBloomReptileMake",
                                        "LiabilityBiteFixedLikenessKnot", "FretStomachRoveCaptainPretty",
                                        "KernelBestYoungMeetSubordinate", "DrumServeNitrogenNeglectHind",
                                        "SpiderAstringentParticularReckonDropping", "ChildPearlProvideBehindOutline",
                                        "ImposingPointedToolToneFreshwater", "DisguiseParadiseYouthEntreatyRude",
                                        "AlphabetSerpentineIndefiniteSpecificArtillery", "InductionOccurSpeedVariationPermit",
                                        "MouseFermentBastardBeatPatch", "ProcureExceptionAssignAntecedentWhole",
                                        "UsageMembraneOrchestraBeginningInitiate", "FormedBendStarchSportInclose",
                                        "SuperiorBirdMushroomFaultAdherence", "EntrailsRushMorningExpenseGroove",
                                        "AbilityCitizenObservingSufferingBirth", "FundMomentIndiesEntryAnnual",
                                        "TabletNitrogenReadilyAtlanticAttached", "BluntMistakeExcellentCommunionWrongly",
                                        "GrantBreathUsageHumorRock", "TroopDarkenDigestiveResortProperly"
  ))


})

Try the keyToEnglish package in your browser

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

keyToEnglish documentation built on Feb. 14, 2021, 1:05 a.m.