Difference between revisions of "Part 3 Test Files"

From CMSC 420
 
(28 intermediate revisions by 6 users not shown)
Line 4: Line 4:
  
 
If you have downloaded and ran someone's test files, mark on the wiki that you verify if outputs correctly. If you have a problem with a test file, mark it on the wiki and discuss it on the forum or possibly on the talk page (although more people would probably see it on the CS forum).
 
If you have downloaded and ran someone's test files, mark on the wiki that you verify if outputs correctly. If you have a problem with a test file, mark it on the wiki and discuss it on the forum or possibly on the talk page (although more people would probably see it on the CS forum).
 +
 +
==Jesse's Unit Tests==
 +
*Tests the HexTrie Bplus and Bstar for put and remove.  Verifies the HexTrie has the correct keys/guides/values/children in each node.  Don't use Save As...  Just click on the link.
 +
***[[Jesse_HexTrie_Junit_Test]]
 +
You need to add in this method to your HexTrie to get the tests to work:
 +
<pre>
 +
public Node<K,V> getRootNode(){
 +
return root.me;
 +
}
 +
</pre>
  
 
== Chris Conroy's Test Files ==
 
== Chris Conroy's Test Files ==
*Last Updated May 12, 7:15pm-ish
+
*Verified by Chris (Updated Nearest/Range Road test & Added NearestCityToRoad Test 11:40pm, Tues)
*Verified by Chris.
+
* See [http://www.glue.umd.edu/~cconroy/420/Part2Tests.java This Unit Test] if you want a quick way of regression testing against part 2 stuff.
  
 
**[http://forum.cs.umd.edu/showthread.php?p=11511&posted=1#post11511 See Forum thread regarding this case for PM2]
 
**[http://forum.cs.umd.edu/showthread.php?p=11511&posted=1#post11511 See Forum thread regarding this case for PM2]
 +
*** Verified by: Ben
 
***[http://www.glue.umd.edu/~cconroy/420/conroyAndrewsExample.input.xml Andrew's Example Input]
 
***[http://www.glue.umd.edu/~cconroy/420/conroyAndrewsExample.input.xml Andrew's Example Input]
 
***[http://www.glue.umd.edu/~cconroy/420/conroyAndrewsExample.output.xml Andrew's Example Output]
 
***[http://www.glue.umd.edu/~cconroy/420/conroyAndrewsExample.output.xml Andrew's Example Output]
 
***[http://www.glue.umd.edu/~cconroy/420/conroyAndrewsExample.png Andrew's Example Image]
 
***[http://www.glue.umd.edu/~cconroy/420/conroyAndrewsExample.png Andrew's Example Image]
 +
 +
** Test case taken from the PM powerpoint lecture. I stole the cheesy title as well.
 +
*** Verified by: Ben
 +
***[http://www.glue.umd.edu/~cconroy/420/conroyAllYourBase.input.xml All Your Base Input]
 +
***[http://www.glue.umd.edu/~cconroy/420/conroyAllYourBase.output.xml All Your Base Output]
 +
***[http://www.glue.umd.edu/~cconroy/420/conroyAllYourBase0.png All Your Base Image0]
 +
***[http://www.glue.umd.edu/~cconroy/420/conroyAllYourBase1.png All Your Base Image1]
 +
 +
** Basic Range and Nearest Road test. Helped me figure out the problems with mine. It's not exhaustive but gets a few edge cases in there.
 +
*** Verified by: Ben
 +
***[http://www.glue.umd.edu/~cconroy/420/conroyRangeTest.input.xml Simple Range Road Test Input]
 +
***[http://www.glue.umd.edu/~cconroy/420/conroyRangeTest.output.xml Simple Range Road Test Output]
 +
**** Conroy says: new versions as of 3:15am Wed. Should be correct now.
 +
 +
** Nearest City To Road tester. Checks for cities along the boundary, error cases, and name ordering for ties. (Note, after passing this test my release score went up 20 points, so it at least constitutes a subset of valid nearestCityToRoad tests)
 +
*** Verified by: Ben
 +
***[http://www.glue.umd.edu/~cconroy/420/conroyNearestCityToRoad.input.xml Nearest City To Road Input]
 +
***[http://www.glue.umd.edu/~cconroy/420/conroyNearestCityToRoad.output.xml Nearest City To Road Output]
 +
**** It works for me.  For those who skimmed through the spec (like me), remember to not include that road in the search.  I was stuck on that for a while. :/
 +
 +
== J Stuckey's Test Files ==
 +
** Name Range test
 +
*** Verified by: Ben
 +
***[http://www.wam.umd.edu/~jstuckey/nameRange.input.xml Name Range input]
 +
***[http://www.wam.umd.edu/~jstuckey/nameRange.output.xml Name Range output]
 +
 +
==Mike's Java PMQuadtree Input Generator==
 +
*I made a program that will generate some tests files for you.  It can test most things in a PM Quadtree except for shortest path, but it wouldn't be that hard for you to add a test for that into your program.
 +
*I also put up some examples with my output.  I'm passing the release tests for part 3 so hypothetically these outputs are all correct.
 +
 +
**[http://www.doc-ent.com/meeshquest/PMTestFileMaker.java] - Program '''(Updated 5/16 at 2:20 PM, Version 1.2)'''
 +
**[http://www.doc-ent.com/meeshquest/revisedtests] - New Tests '''(Updated 5/16 at 2:20 PM)'''
 +
 +
*Regards, Mike Bentley

Latest revision as of 02:22, 16 May 2012

Upload and post Part 3 test files here.

You will need to right-click these and do a Save As... just copying/pasting them from your browser will not work.

If you have downloaded and ran someone's test files, mark on the wiki that you verify if outputs correctly. If you have a problem with a test file, mark it on the wiki and discuss it on the forum or possibly on the talk page (although more people would probably see it on the CS forum).

Jesse's Unit Tests[edit]

  • Tests the HexTrie Bplus and Bstar for put and remove. Verifies the HexTrie has the correct keys/guides/values/children in each node. Don't use Save As... Just click on the link.

You need to add in this method to your HexTrie to get the tests to work:

public Node<K,V> getRootNode(){
	return root.me;
}

Chris Conroy's Test Files[edit]

  • Verified by Chris (Updated Nearest/Range Road test & Added NearestCityToRoad Test 11:40pm, Tues)
  • See This Unit Test if you want a quick way of regression testing against part 2 stuff.
    • Nearest City To Road tester. Checks for cities along the boundary, error cases, and name ordering for ties. (Note, after passing this test my release score went up 20 points, so it at least constitutes a subset of valid nearestCityToRoad tests)

J Stuckey's Test Files[edit]

Mike's Java PMQuadtree Input Generator[edit]

  • I made a program that will generate some tests files for you. It can test most things in a PM Quadtree except for shortest path, but it wouldn't be that hard for you to add a test for that into your program.
  • I also put up some examples with my output. I'm passing the release tests for part 3 so hypothetically these outputs are all correct.
    • [1] - Program (Updated 5/16 at 2:20 PM, Version 1.2)
    • [2] - New Tests (Updated 5/16 at 2:20 PM)
  • Regards, Mike Bentley