This website is a work in progress designed to practice the Behavior-Driven Development (BDD) model for creating programs with end performance in mind. While its functionality to this point is marginal, it does show the iterative process involved in BDD and has been integral in cultivating my understanding of the BDD process that we will be using in further website builds at Epicodus.
- HTML
- JavaScript
- jQuery
- Markdown
- Git Bash
- Google Chrome
- Microsoft Windows 10
- Mozilla Firefox
- Visual Studio Code
- Download a web browser, such as Apple Safari, Google Chrome, Microsoft Edge, Mozilla Firefox, or Yandex.
- Navigate to https://github.com/taylorsomers/roman-numerals.
- Click the green "Clone or download" button at the right of the screen.
- Select "Download ZIP."
- Use a file extractor or unzip program (such as PeaZip, Unzipper, WinZip, Zipware, or 7-ZIP) to extract the ZIP files onto your computer.
- Open the directory containing the extracted files.
- Double-click the "index.html" file to run the program through your web browser.
Program Behavior | Example Behavior | Example Output |
---|---|---|
Program distinguishes numbers from non-numbers. | "1", "a", "." | "true", "false", "false" |
Program displays an error message when a non-integer is entered. | ||
Program displays an error if integer less than '1' is entered. | ||
Program displays an error if integer greater than "3999" is entered. | ||
Program converts single-digit entry of "1" to "I". | ||
Program converts single-digit entry of "5" to "V". | ||
Program converts double-digit entry of "10" to "X". | ||
Program converts double-digit entry of "50" to "L". | ||
Program converts triple-digit entry of "100" to "C". | ||
Program converts triple-digit entry of "500" to "D". | ||
Program converts quadruple-digit entry of "1000" to "M". | ||
Program displays Roman numerals the summation of which add up to the user-inputted number. | ||
Program will not repeat numerals "I", "V", or "X" more than three times consecutively in output. | ||
- Beyond its unfinished state to this point, no known bugs in the built-out functionality at this time. If any are discovered, please feel free to reach out and let me know. If you would like to contribute any fixes or improvements, please do!
- Taylor Somers
This website is licensed under the GNU General Public License GPLv3. (C) 2020 Taylor Somers. All rights reserved.