tests/testthat/test_amasLite.R

# Copyright (C) 2018  Jochen Weile, Roth Lab
#
# This file is part of MaveVis.
#
# MaveVis is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# MaveVis is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with MaveVis.  If not, see <https://www.gnu.org/licenses/>.

library("mavevis")

context("amasLite")

test_that("amasLite works",{
	
	alFile <- system.file("testdata","test_alignment.fasta",package="mavevis")
	
	amas <- new.amasLite()
	cons <- amas$run(alFile)

	expect_length(cons,101)
})
jweile/mavevis documentation built on Oct. 30, 2023, 7:16 a.m.