Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
!contents -R2 -g -p -f -h
 
!define TEST_SYSTEM {slim}
 
!path C:\work\find-highest-number\target\find-highest-number-1.0-SNAPSHOT.jar
 
|import                         |
|com.celestial.findhighestnumber|
 
|Find Highest Number Fixture|
|Numbers   |Expected Value? |
|4,5,90,7  |90              |

|Find Highest Number Fixture |
|Numbers List|Expected Value?|
|[4,5,90,7]  |90             |



Further challenge

Rather than just returning the highest number also sort the the array of integers

...

Code Block
languagetext
!contents -R2 -g -p -f -h
 
!define TEST_SYSTEM {slim}
 
!path C:\work\software\netbeans\tdd-find-highest-number\target\tdd-find-highest-number-1.0.jar
 
|import                         |
|com.celestial.tdd.fitnesse.demo|
 
|Find Highest Number Fixture|
|Numbers   |Expected Value? |
|4,5,90,7  |90              |

|Find Highest Number Fixture |
|Numbers List|Expected Value?|
|4,5,90,7    |90             |

|Find Highest Number AndOr Sort Array Fixture|
|Numbers List         |Sorted List?        |
|4,5,90,7             |4,5,7,90            |


Alternative more advanced wiki script

Code Block

...

languagetext
!contents -R2 -g -p -f -h
 
!define TEST_SYSTEM {slim}
 
!path C:\work\software\netbeans\tdd-find-highest-number\target\tdd-find-highest-number-1.0.jar
 
|import                            |
|com.celestial.tdd.fitnesse.demo   |
|com.celestial.tdd.fitnesse.demo.v2|


 
|Find Highest Number Fixture|
|Numbers   |Expected Value? |
|4,5,90,7  |90              |

|Find Highest Number Fixture |
|Numbers List|Expected Value?|
|4,5,90,7    |90             |

|Find Highest Number Or Sort Array Fixture|
|Numbers List        |Sorted List?        |
|4,5,90,7            |4,5,7,90            |

|Find Highest Number And Sort Array Fixture|
|Numbers List |Expected Value?|Sorted List?|
|4,5,90,7     |90             |4,5,7,90    |


Fully worked example