Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

Coursera

Algorithms I (Fall 2013)

Unit tests for assignments and exercises in Coursera's Algorithms I class.

maketest

My current directory structure has individual project folders (e.g. the Percolation assignment) at the top level of my Algorithms I path. This repo of unit tests sits at the same level:

~/algo4/percolation # percolation assignment
~/algo4/unionfind   # union find exercise
~/algo4/test        # this repo

To make life easier, maketest can be run from a project folder to bootstrap a JUnit test class in the unit test directory and symlink it to the project:

$ cd ~/algo4/percolation
$ ls
Percolation.java Makefile
$ maketest Percolation ../test
$ ls
Percolation.java Makefile TestPercolation.java
$ ls -l
... TestPercolation.java -> ../test/percolation/TestPercolation.java
$ cat TestPercolation.java
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;

public class TestPercolation {

    @Before
    public void setUp() {}

    @After
    public void tearDown() {}

    @Test
    public void test() {}

}

Other related stuff:

About

Various and sundry unit tests for Coursera's Algorithms I class

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.