Skip to content

Final Exercise in Shell Line/Command section Very Challenging-not solvable without external reference? #17

@juliebates

Description

@juliebates

Is this solvable without referring to external materials? I found these very challenging, and did not solve, which is still bugging me, Tetris might have helped recharge my brain.

Exercise
Choose shunit2 or bats (or both) and

re-write above test for 1dsum using one of the frameworks. If you do not have AFNI available, you could test generic bc or dc command line calculators possibly available on your system.
Add additional tests to “document” behavior of 1dsum whenever
    input file is empty
    multiple files are provided
    some values are negative

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions