Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apetrovya/kroman
A simple implementation of a Kotlin class for translating roman numerals into integers
https://github.com/apetrovya/kroman
junit kotlin maven roman-numerals
Last synced: about 6 hours ago
JSON representation
A simple implementation of a Kotlin class for translating roman numerals into integers
- Host: GitHub
- URL: https://github.com/apetrovya/kroman
- Owner: apetrovYa
- License: mit
- Created: 2024-02-20T08:22:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-20T08:53:12.000Z (9 months ago)
- Last Synced: 2024-05-10T11:50:06.799Z (6 months ago)
- Topics: junit, kotlin, maven, roman-numerals
- Language: Kotlin
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kroman
A simple library in Kotlin to convert Roman numerals into integers.
## Description
This project is a simple library written in Kotlin that provides functionality
to convert Roman numerals into their corresponding integer values. The
library validates the input string to ensure it is a valid Roman numeral.## Getting Started
### Dependencies
* Kotlin 1.9.22
* Java
* Maven### Installing
* Clone the repository from [https://github.com/apetrovYa/kroman](https://github.com/apetrovYa/kroman)
* Navigate to the project directory and run `mvn clean install`### Usage
Create an instance of the `Converter` class by passing the Roman numeral as a string to the constructor. Then, call the `toInteger` method to get the integer value of the Roman numeral.
```kotlin
val converter = Converter("IX")
val intValue = converter.toInteger() // returns 9
```## Tests
The project includes a suite of tests that can be run with the following command:
```bash
mvn test
```## License
This project is licensed under the MIT License - see the LICENSE.md file for details.
## Acknowledgments
* Thanks to the Kotlin and Maven communities for their great tools and resources.