Coder Social home page Coder Social logo

dank-formal's People

Contributors

danielkasza avatar ekiwi avatar

Stargazers

Tom Alcorn avatar  avatar

Watchers

 avatar

Forkers

ekiwi

dank-formal's Issues

Avoid generating duplicate test names

I will have to think about how to best handle this, but the issue is that this:

    for (i <- 1 until 8) {
        cover(new SaturatingUpDownCounter(i))
        prove(new SaturatingUpDownCounter(i))
        bmc(new SaturatingUpDownCounter(i))
    }

Causes this:

SaturatingUpDownCounterTest:
util.SaturatingUpDownCounterTest *** ABORTED ***
  Duplicate test name: SaturatingUpDownCounter must be covered (formaltester.scala:11)
  org.scalatest.exceptions.DuplicateTestNameException:
  at org.scalatest.SuperEngine.registerTest(Engine.scala:657)
  at org.scalatest.FlatSpecLike.org$scalatest$FlatSpecLike$$registerTestToRun(FlatSpecLike.scala:143)
  at org.scalatest.FlatSpecLike$ItVerbString.in(FlatSpecLike.scala:382)
  at dank.formal.FormalTester.cover(formaltester.scala:11)
  at dank.formal.FormalTester.cover$(formaltester.scala:10)
  at util.SaturatingUpDownCounterTest.cover(SaturatingUpDownCounter.scala:8)
  at util.SaturatingUpDownCounterTest.$anonfun$new$1(SaturatingUpDownCounter.scala:12)
  at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158)
  at util.SaturatingUpDownCounterTest.<init>(SaturatingUpDownCounter.scala:11)
  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  at java.base/java.lang.Class.newInstance(Class.java:584)
  at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:448)
  at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413)
  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  at java.base/java.lang.Thread.run(Thread.java:834)
Execution took 11ms
1 tests, 1 errors

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.