Giter VIP home page Giter VIP logo

kdl4j's People

Contributors

hkolbeck avatar hkolbeck-streem avatar lemmaeof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kdl4j's Issues

TestParseIdentifier and TestParseBareIdentifier are identical

The unit test TestParseIdentifier (trunk@59ced546f5227abcbd0b4c8a7d5bcddcb8ba6667) is identical to TestParseBareIdentifier.

Both call the parseBareIdentifier function, so parseIdentifier isn't directly covered. Seems like a minor typo?

Changing https://github.com/hkolbeck/kdl4j/blob/trunk/src/test/java/dev/hbeck/kdl/parse/TestParseBareIdentifier.java line 46 to call parseIdentifier results in a passing unit test calling the correct function, but should it have a different set of test data?

KDL 1.0 Compliance

Hi! Since this was originally written, KDL has stabilized to 1.0.0. No further changes should be made to spec so it should be safe to update + finalize kdl4j to the 1.0 spec!

Please let me know if you have any questions or if there's anything I can do to help!

Bugs found by kdl-gen

I've been testing kdl4j using the KDL document generator I wrote for fuzz testing, found here: https://github.com/hkolbeck/kdl-gen

I have not yet identified the source of all issues, but they can be reproduced by running kdl-gen and piping the result to https://github.com/hkolbeck/kdl4j/blob/trunk/src/main/java/dev/hbeck/kdl/Fuzzer.java. Due to a limitation of the BigDecimal class used internally, the kdl-gen argument --num-len-max should be set to 8 or less. It can be useful to utilize the --ascii-only flag as well if the issue doesn't depend on unicode.

When run, kdl-gen prints a seed value to stderr, if invoked again passing --seed <SEED> with the same arguments other than --debug it will replicate the same output. See the kdl-gen readme for info on possible arguments.

I'll call this closed when piping kdl-gen to the Fuzzer can be done 10,000 times in a loop with no parse 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.