Module:ImportProtein/testcases

-- Unit tests for Module:ImportProtein. Click talk page to run tests. -- The purpose of the module is to take a protein sequence record from NCBI and process it into an illustration of the protein domains and structure suitable for use in an article. -- Ideally it is meant to be used with subst: during article creation. -- The person copying and pasting text will have to check for pipe (|) characters manually, though I think they are rare or nonexistent in these records.

local p = require('Module:UnitTests')

-- source: https://www.ncbi.nlm.nih.gov/protein/P12931.3 function p:test_src self:preprocess_equals([==[]==], 'TBD: Some fancy plot with multi-colored boxes and dots and a figure legend. :) Should be a rectangle with various multicolored domains marked out on it. Probably should be drawn in several rows according to "site" or "region" among other things to permit overlaps. Should show all features except those listed in exclude, show note rather than site_type or region_name for those indicated as usenote, and substitute annotation of the active site as directed.') end

return p