Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024

Original comment by [email protected] on 17 Jun 2010 at 4:48

  • Changed state: Started

from randoop.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
An initial solution to this problem that chunks up a String like "aaaa...aaaa" 
(ellipses representing a very long string) into "aaaa" + ... + "aaaa" didn't do 
the job: the compiler still complains of a too-long string constant.

However, if we declare a static String constant x in the class and use x + ... 
+ x in the test, the class compiles successfully.

The latter solution requires an extension to the output format to allow for 
declaration of the static string constants; will take a bit longer to finish.

Original comment by [email protected] on 17 Jun 2010 at 6:08

from randoop.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024

Fix: Randoop will not create assertions for strings greater than 10,000 
characters in length; behavior can be controlled via new option below

--assertion-string-maxlen=<int> - Maximum length of strings allowed in 
assertions.
    Note that String constants of length greater than 65KB may be
        rejected, according to the Java Virtual Machine specification.
        [default 10000]

Original comment by [email protected] on 24 Jun 2010 at 6:32

  • Changed state: Fixed

from randoop.

Related Issues (20)

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.