Giter Site home page Giter Site logo

java-scala's Introduction

Overview

A follow up to this repo https://github.com/Particeep/java-interview as an answer to the coding challenge java-interview.

the following file was updated ~/project/build.properties

sbt.version=1.9.8

โ†’ the sbt version was modified to 1.9.8 because the 1.5.5 version had a bug which resulted in the following exception.

java.lang.ClassCastException: class java.lang.UnsupportedOperationException cannot be cast to class xsbti.FullReload (java.lang.UnsupportedOperationException is in module java.base of loader 'bootstrap'; xsbti.FullReload is in unnam
ed module of loader 'app')

a pom.xml file was added to compile and run tests in a maven project.

Dependencies

the vavr dependency was added to the pom.xml file.

<dependencies>
        <dependency>
            <groupId>io.vavr</groupId>
            <artifactId>vavr</artifactId>
            <version>0.9.0</version>
        </dependency>
    </dependencies>

Test

To test the project using sbt

cd ~/java-scala
sbt clean update compile
sbt test

results after running the command sbt test

[info] The Collection test
[info] - should compute some value for second method
[info] BasicTestSpec:
[info] AsyncTestSpec:
[info] The Basic test
[info] The Async test
[info] - should compute power
[info] - should compute ceo and enterprise
[info] Run completed in 442 milliseconds.
[info] Total number of tests run: 4
[info] Suites: completed 3, aborted 0
[info] Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 6 s, completed Feb 16, 2024, 3:49:10 PM

java-scala's People

Contributors

th3pasha avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.