MyNixOS website logo
Description

Extend 'tinytest' with 'diffobj'.

The 'tinytest' package offers a light-weight zero-dependency unit-testing framework to which this package adds support of the 'diffobj' package for 'diff'-style comparison of R objects.

ttdo: Extend 'tinytest' with 'diffobj'

CI License CRAN Dependencies Downloads Last Commit

What is it?

A package to extend tinytest, a lightweight, no-dependency, full-featured unit testing package, with diffobj which compares R objects with proper diff semantics.

So it tests and compares and, in case of differences, provides informative results.

What does that look like?

Glad you asked:

To test it out yourself, the code is in demo/expect_equal_with_diff.R. If you don't see the same results as above, you may need to manually adjust the diffobj package options. Try options(diffobj.format = "ansi256"). See Controlling Diffs and Their Appearance for more details.

How do install it?

The package is now on CRAN and can be installed via a standard

install.packages("ttdo")

Who wrote it?

Dirk Eddelbuettel and Alton Barbehenn

What license?

GPL (>= 2)

Thanks go to

Mark van der Loo for the excellent tinytest package, Brodie Gaslam for the nifty diffobj package and Michel Lang for checkmate.tinytest demonstrating the extensions mechanism.

Metadata

Version

0.0.9

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows