Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

seanfisk/apa-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The following code is another Test-Driven Development exercise for Mott Fisk and Ryan Moyer.

The purpose of the program is to format a reference for a reference list according to the APA citation style given the necessary informtation about it. Son of Citation Machine is an example of a web application which does this.

Purpose

  • Practice git skills.
  • Practice skills developing using TDD.
  • Practice formatting skills.
  • Learn how to use exceptions in Python.

Instructions

  • Log in to your GitHub account.
  • Fork my repository by following GitHub's guide to Forking a Repo.
  • Clone the code from your new repository using the GitHub client.
  • Run the test suite by running python test_apa.py on the command-line. All tests should fail.
  • Complete the code in apa.py such that it passes all the tests. I will help you on the tests that expect errors to be raised.
  • Add extra tests if desired!
  • Commit the code locally.
  • Sync the code to your repository.
  • Submit a pull request to my original repository. I will help you on this.

Notes

The tests cases for this program don't technically follow strict APA style. You shouldn't need to consult an APA manual to make it work. Just look at the tests and make them pass.

Hints

  • You are required to use str.format() to do the formatting code. You may want to use the keyword argument form instead of the positional argument form. Ask me about it or attempt to figure it out on your own.
  • You'll want to use str.split() to correctly handle the full names.
  • Look in the tutorial sections Errors and Exceptions if you'd like to learn how they work, specifically Raising Exceptions.

About

Another TDD exercise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages