Coder Social home page Coder Social logo

amitfuncs's Issues

input comparer

check all the inputs and if they are the same input, compare if they have the same definition.

Test split creater

when testing a function, if we take inputs that have options listed, create an output where all of the input combinations are crossed. This will create an output suitable to create unit tests.

Hrm... mess w/ the idea of explicitly stating errors or not?

#' @param boom does x, Default: 'R', Options: c("1","4","6{X}")
#' @param matchingText PARAM_DESCRIPTION, Default: '.', Options: c("a", "bvb", NA{X})
#' @param other does y, Options: c("hello", "bye")

Would produce:

expand_grid(boom  = c("1","4","6{X}"), matchingText  = c("a", "bvb", "NA{X}"), other  = c("hello", "bye"))

and anything that has an X will create an expect_error expectation... else expect class as per output.

This is concise, but it does coerce everything to character. Maybe:

#' @param boom does x, Default: 'R', Options: c(1,4,6), FailureOn: 6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.