Skip to content

jc00ke/cpp17csv-pony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expressive C++ 17 Coding Challenge, in Pony

This is my first foray into Pony. Be gentle.

Details on the challenge

This command line tool should accept the following arguments:

  • the filename of a CSV file,
  • the name of the column to overwrite in that file,
  • the string that will be used as a replacement for that column,
  • the filename where the output will be written.

Here is how to deal with edge cases:

if the input file is empty

  • the program should write “input file missing” to the console.
  • no output file generated

if the input file does not contain the specified column

  • the program should write “column name doesn’t exists in the input file” to the console.
  • no output file generated

if the program succeeds but there is already a file having the name specified for output

  • the program should overwrite this file.

Setup

  1. Install Pony
  2. make test

Running

> ./cpp17csv test-input City London output.csv

About

My attempt at learning Pony via the Expressive C++ 17 challenge

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors