R version 4.4.0 alpha (2024-04-04 r86334 ucrt) Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(FedIRT) > library(testthat) > test_that('test data', { + + data(example_data_2PL) + expect_equal(ncol(example_data_2PL),10) + expect_equal(nrow(example_data_2PL),160) + + data(example_data_2PL_1) + expect_equal(ncol(example_data_2PL_1),10) + expect_equal(nrow(example_data_2PL_1),81) + + data(example_data_2PL_2) + expect_equal(ncol(example_data_2PL_2),10) + expect_equal(nrow(example_data_2PL_2),79) + + combined_data = rbind(example_data_2PL_1,example_data_2PL_2) + expect_equal(combined_data,example_data_2PL) + + data(example_data_graded) + expect_equal(ncol(example_data_graded),10) + expect_equal(nrow(example_data_graded),100) + + data(example_data_graded_and_binary) + expect_equal(ncol(example_data_graded_and_binary),8) + expect_equal(nrow(example_data_graded_and_binary),81) + + + }) Test passed 🌈 > > proc.time() user system elapsed 1.15 0.15 1.29